CAP-1607 - python 2.6 compatibility issue with datetime.total_seconds()