Python <= 2.6 does not suppor the timedelta.total_seconds() method. Add a wrapper.
Merge pull request #13200 from jhenry82/total_seconds_python26

Add wrapper function for total_seconds()