def minutes(string):
    pattern = re.findall('\\d+', string)
minutes_mul = [(a * int(b)) for a, b in zip([60.0, 1.0, 1.0 / 60], pattern)]
return sum(minutes_mul)
Python: converting Trip duration of h min sec and leave only minute count