use ant to compile the project instead of the compile function in the python file