Py3k fix for ChemicalPotential.