Longest Common Substring In An Array Of Strings Python