Add utility methods to generate the transformations

This uses known-working code from the rotate method
Integrate transformations in to polyhedron class
Expose methods to python
Fix whitespace