Minor code cleanup of Renderer.py