first commit. previously mapstools.py