use timedelta.total_seconds

instead of custom implementation total_seconds
extract method for field formatting
Merge branch 'python27-timedelda-totalseconds'