add total_seconds polyfill for python2.6