def write_config():
  f = open("test.py", "a")
  f.write("""\
    Usage: thingy [OPTIONS]
         -h                        Display this usage message
         -H hostname               Hostname to connect to
    """
  )
  f.close()

write_config()
