This is more or less the idea of the whole code, still not tested (and
PyMW still not working, I have to figure out the correct configuration)