Made mml compatible with python2 again