A python module for analyzing cofactor complexes