def METHOD_NAME(bit_string):
  """
  This should be used in py3 or above
  """
  padded_bits = bit_string + '0' * (8 - len(bit_string) % 8)
  return list(int(padded_bits, 2).to_bytes(len(padded_bits) // 8, 'big'))