A logarithm calculator with python