A well documented idiomatic python implementation of a gcm server.