if_tsresol = ord(option[4]) This line will cause an error because the option [4] = 6 instead of '\x06' in python2
if_tsresol = ord(option[4])
This line will cause an error because the option [4] = 6 instead of '\x06' in python2