get often occuring string patterns from column in r or python,"[('okay', 5), ('bla', 5)]"