#!/usr/bin/python2 import sys first_argument=True out=open("fake_java_out.txt", "w") for element in range(len(sys.argv)): out.write(sys.argv[element]) first_argument=False if not first_argument: out.write(" ") out.close()