Compiler implemented in python