updated renderer.py to use new style classes