Added Hamming Distance in Python