try loop around datetime.timedelta.total_seconds which doesn't exist on

Python2.6