ANSI M interpreter written in Python