Python3 and pep8 fixes for 3d rendering example
Merge pull request #1987 from inclement/3drendering

Python3 and pep8 fixes for 3d rendering example