python 2.6 fails because of datetime.totalseconds