removing timedelta.total_seconds (total_seconds missing in Python 2.6)