adding HAMM.py