remove use of timedelta.total_seconds() for python 2.6 compat.