Tweaked pushbullet.py code. Condensed.