Cleaning up the rendering_test script

Changing func name in rendering_test.py

Cleaning up rendering_test.py

fixing pep8 errors