Python Logarithms Rules Example