This is a sample implementation of a REST wrapper for sending notifications with Notification Hubs using the REST APIs of Notification Hubs from a Python back-end.
Detailed readme is available here - http://azure.microsoft.com/en-us/documentation/articles/notification-hubs-python-backend-how-to/
For registration management you have to follow the content formats shown in the REST APIs of Notification Hubs, and probably do some xml parsing is case of GETs. Be warned that element order is important and things will not work if the element are out of order.
This code is provided as-is with no guarantees.
Adrian Hall (Splunk)