updated renderer.py to use new style classes and extended calling syntax