title: Implementing the LZ78 compression algorithm in python
body: <p>I've been toying around with some compression algorithms lately but, for the last couple days, I've been having some real trouble implementing LZ78 in python. I've looked around online for some examples but haven't really found anything reliable that both encodes and decodes input. Does anyone have any resources I could look at or code I could examine?</p>
  
  <p>Thanks</p>