The map drawing code and edgefile generator are now separate, to bypass a matplotlib bug when run in xchat's python.so.