Replace logger variable name by log
Full Python 3 support