RLE-Python Run-length encoding (RLE) Example in Python Run rle.py for example. Should be compatible with both Python 2.x and 3.x.