Scipy: Rotation formalism in 3 dimensions