Generate All Substrings Of A String Python Documentation