1 2 3 4 5
import testmodule def writetofile(args): with open(args[0], 'w') as f: f.write(' '.join(args[1:]))