simpest way to find the logarithm of a number in python