Python: Logging TypeError: not all arguments converted during string formatting,"logging.info('date=%s', date)"