Python implementation of MaxEnt classifier