scene: make visuals/scenegraph py3k compatible plus few minor fixes.

Note: this is a PR against the scenegraph branch.