Python modules for linear homology