revised python to ex40