Fixed some issues with mapimport

Test this to see if it runs.  Cannot compile python on this machine,
because I am useless.