hits.py speedup