[TESTS] make test_tk.py compatible with python 2.6 (again)