Older versions of python do not have total_seconds in datetime differences.