self.db = torndb.Connection(**config.mysql_options) self.redis = redis.StrictRedis(**config.redis_options)