You need to use double back slashes in your path:
os.chdir('C:\\Users\\Heinz\\Desktop\\tc_500')
or single forward slashes:
os.chdir('C:/Users/Heinz/Desktop/tc_500')
The sequence \t
is an escape sequence for a tab character, and that is messing up further processing of the string. \T
is not an escape sequence. The first back slash escapes the second back slash, allowing for the correct path to be passed.