Prototype postgres's replication protocol in python.