fixed all sorts of import errors and other stupid shit in maxent.py