Rather than write a new version of the python script, we just wrote a perl script (I don't know python unfortunately) to convert Greenflag maps into a format the python script could convert. This makes it a two step process, but it works.