Removed use of .totalSeconds() for python 2.6 support