simplifying compiler.py