Add workaround for Python 2.6.

Python 2.6 does not include the ```total_seconds``` method for ```datetime.timedelta``` 

https://docs.python.org/2/library/datetime.html#datetime.timedelta.total_seconds
I think we can disregard microseconds accuracy and just make this

    differenceTotalSeconds = difference.seconds + difference.days*24*3600