Python implementation of a T1 API Library