[python] Convert a timedelta to days, hours and minutes