Boltzmann Partition Function Python Example Programs