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 [url:168cl0w3]https://github.com/pubnub/pubnub-api/tree/master/python[/url:168cl0w3]
More Info on PubNub: