import testmodule

def writetofile(args):
  with open(args[0], 'w') as f:
    f.write(' '.join(args[1:]))