How To Define Exponential Function In Python