This _log is only local to the __init__ function, and get_cache_penalty and get_hss_penalty will call the global _log and use "crest.api" instead. This should probably be self._log.