LMC interpreter writter in Python