Update maxent.py

should use initial parameter "train" rather than a global parameter within __main__