Add a wrapper method for total_seconds() which does not exist on Python 2.6