def aslist(l):  
if isinstance(l, MutableSequence):<EOL><INDENT>return l<EOL><DEDENT>else:<EOL><INDENT>return [l]<EOL><DEDENT>
Convenience function to wrap single items and lists, and return lists unchanged.