quaternion to euler python code