refactor compile.py -> render.py