Issue #15861: tkinter now correctly works with lists and tuples containing
strings with whitespaces, backslashes or unbalanced braces.
Issue #9501: Improved shutdown handling to deal with module attributes correctly.