merged hits.py into pymapper.py