Use math.log over math.log2 to be python 3.2 compatible