Python implementation of the text tiling algorithm