def parse_geometry(geometry):
m = re.match("<STR_LIT>", geometry)<EOL>if not m:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>return map(int, m.groups())<EOL>
Takes a geometry string, returns map of parameters.