first version of map.py