trouble with duplicate lines of logs in log file,hdl = logging.FileHandler('hits.log')