STY: Fix scenegraph style

@lcampagn ready for review/merge. `make flake` passes over here.
This is the only real substantive change. I just made these functions since it's more consistent with the rest of the package not to have static methods.