Fix total_seconds python2.6 issue, add test