fix for issue #14655
Fix for python 2.6 not having timedelta.total_seconds()
Merge pull request #14656 from kyriakosoikonomakos/timedelta

fix for issue #14655