EDIT:: I found out i was overlooking it or something but i found the rfc822 module. Sorry about that. Will post my luck with pubnub networking.
Link to python api https://github.com/pubnub/pubnub-api/tree/master/python
More Info on PubNub: