def mapstr_to_list(mapstr):
maplist = []<EOL>with StringIO(mapstr) as infile:<EOL><INDENT>for row in infile:<EOL><INDENT>maplist.append(row.strip())<EOL><DEDENT><DEDENT>return maplist<EOL>
Convert an ASCII map string with rows to a list of strings, 1 string per row.