don't use total_seconds(), only available in python 2.7 and up