models: timedelta.total_seconds() py2.6 compatibility fix