Revert diff.total_seconds() to work in python <2.7