Fixed timetaken: was calling total_seconds() on timedelta instead of seconds()