convert a string to an array,testarray = ast.literal_eval(teststr)