Quaternion class and associated unit tests in python