Implementation of the Snapchat protocol in Python