complete render.py