first commit of hamm.py. works