add longestCommonPrefix(python)