Update hamming.py