Python Common Substring In List Of Strings Matlab