Create Longest Common Prefix (pyemma)