some python programs to calculate engine efficiencies