largest common prefixes python