how to convert log value to normal in python