total_seconds() is py2.7+