this is actually python 2.7 only, so you need to just use `td.seconds`