Python implementation of mean-field direct coupling analysis [1] see http://dca.rice.edu/portal/dca/ for references and original code in Matlab
If you use this algorithm in your work you should cite Ref [1]
[1] Morcos, Faruck, et al. "Direct-coupling analysis of residue coevolution captures native contacts across many protein families." Proceedings of the National Academy of Sciences 108.49 (2011): E1293-E1301.