def standardizeMapName(mapName):
<EOL>newName = os.path.basename(mapName)<EOL>newName = newName.split("<STR_LIT:.>")[<NUM_LIT:0>]<EOL>newName = newName.split("<STR_LIT:(>")[<NUM_LIT:0>]<EOL>newName = re.sub("<STR_LIT>", "<STR_LIT>", newName)<EOL>newName = re.sub("<STR_LIT:->", "<STR_LIT>", newName)<EOL>newName = re.sub('<STR_LIT:U+0020>', '<STR_LIT>', newName, flags=re.UNICODE)<EOL>foreignName = newName<EOL>if foreignName in c.mapNameTranslations:<EOL><INDENT>return c.mapNameTranslations[foreignName]<EOL><DEDENT>return newName<EOL>
pretty-fy the name for pysc2 map lookup