title: Efficiently keeping track of changes in text
body: <p>I have to send some text over the network to another computer in python. I'll probably do this using sockets. I'm doing this so people on two different computers can edit a document at the same time. I was wondering whether there was an efficient way I could do this. I figure sending the updated text everytime a user presses a key doesn't make sense at all. Could I instead only send the changes that are made every time the user changes something in the text. How do I go about doing this?</p>