def args_to_list(arg_string):
 arg_list = [x.strip() for x in arg_string.strip().strip('[]').split(',')]
 return arg_list

def args_to_list ( arg_string ) : arg_list = [ x . strip ( ) for x in arg_string . strip ( ) . strip ( '[]' ) . split ( ',' ) ] return arg_list
parses argument-string to a list .