Sage code for quaternion algebras