improve ham.py
remove hamk