'Send a Pushbullet notification'

def notify(self, title, message, config):

    if (config.get(u'device') and (not isinstance(config[u'device'], list))):
        config[u'device'] = [config[u'device']]
    if (config.get(u'email') and (not isinstance(config[u'email'], list))):
        config[u'email'] = [config[u'email']]
    if (not isinstance(config[u'api_key'], list)):
        config[u'api_key'] = [config[u'api_key']]
    for key in config[u'api_key']:
        if config.get(u'channel'):
            self.send_push(key, title, message, config.get(u'url'), config.get(u'channel'), u'channel_tag')
        elif config.get(u'device'):
            for d in config[u'device']:
                self.send_push(key, title, message, config.get(u'url'), d, u'device_iden')
        elif config.get(u'email'):
            for e in config[u'email']:
                self.send_push(key, title, message, config.get(u'url'), e, u'email')
        else:
            self.send_push(key, title, message, config.get(u'url'))
