LMNN example for Python modular