remove lambda mode for python