def str_diff(str1, str2):
	"""
	Calculate Hamming Distance between two strings.

	>>> str_diff(b'this is a test', b'wokka wokka!!!')
	37
	"""
	return sum(bin(a ^ b).count('1') for a, b in zip(str1, str2))