Create Remove Duplicates from Sorted Array (pyemma)