better just  " if self.server.config.get('youtube_api_blocked'):"
default value when extracting from dict is None which equals to False in checks for Truth.