Added rotation support to the python library nad a script to check
bindings against a reference implementation.