Find all Possible Substrings of String in Python