improved formatting in map.py