Create quaternions.py

'Forked' from https://github.com/peterjc/longsight/blob/master/quaternions.py