inverse log transformation in python