Create Remove Duplicates from Sorted List II (pyemma)