PyInteraph: a framework for the analysis of interaction networks in structural ensembles of proteins