Increase And Decrease Of A Function Definition In Python