added ThermoResult type and also problably made some python2  build fixes