Inverse log python