python-onesignal is a Python wrapper for the OneSignal REST API.
>>> from onesignal import OneSignal
>>> onesignal = OneSignal(API_KEY)
>>> onesignal.apps()
Install python-onesignal via pip
$ pip install python-onesignal
or, with easy_install
$ easy_install python-onesignal
But, hey... that's up to you.
Documentation can be found here: https://python-onesignal.readthedocs.org/