Improved tk import