'Refresh devices, contacts, etc.
pbtargets stores all targets available from this Pushbullet instance
into a dict. These are Pushbullet objects!. It sacrifices a bit of
memory for faster processing at send_message.
As of sept 2015, contacts were replaced by chats. This is not
implemented in the module yet.'

def refresh(self):

    self.pushbullet.refresh()
    self.pbtargets = {'device': {tgt.nickname.lower(): tgt for tgt in self.pushbullet.devices}, 'channel': {tgt.channel_tag.lower(): tgt for tgt in self.pushbullet.channels}}
