CouchDB Replication Protocol implementation in Python