Adding code to find all palindromic substrings in python