Python implementation of the multistate Bennett acceptance ratio (MBAR)