Quaternion library for Python