Python implementation of MARC:MIR