I think I'm going to go a different route now. I know this goes against all sensible programming practices, but I'll just write a perl script to extract the information from the greenflag .html, and generate a file that parse_mapsonus.py can read. If you think of it in the sense that it allows further changes to the parse_mapsonus.py script without having to change the parse_greenflag.pl script, it's not that much of a hack..