def METHOD_NAME(num):
  """Prettily formatted string of binary representation of suplied number.
  Useful for debugging.
  Args:
    num: number to be prettily formatted
  Returns:
    prettily formatted string
  """
  # like ipaddr make assumption that this is ipv4
  byte_strings = []
  while num > 0 or len(byte_strings) < 4:
    byte_strings.append('{0:08b}'.format(num & 0xff))
    num >>= 8
  return ' '.join(reversed(byte_strings))