made into python module, and map.py should have absolute import