Python3 and pep8 fixes for 3d rendering example

This would resolve https://github.com/kivy/kivy/issues/1977