def hamming_distance(seq1, seq2):
  """
  Given two binary length sequences, seq1 and seq2 (presumed to be the same
  length) returns the Hamming bitwise distance between them.
  """
  dist = sum([1 if seq1[i] != seq2[i] else 0 for i in range(len(seq1))])
  return dist