Added time to logfile, fixed code according to pylint messages