flake8 fix
BUG: python timedelta has not only seconds, also days... could use total_seconds but this way can also work with python2.6