Converted for using logging Python system.