A CAS 2 library for python