Update tsk.py

fixed a flaw in trying to copy data that contains invalid stuff