Support python <2.7 with regards to time delta not implementing the
total_seconds method.