def group_tuples(Input):
	 
	out = {} 
	for elem in Input: 
		try: 
			out[elem[0]].extend(elem[1:]) 
		except KeyError: 
			out[elem[0]] = list(elem) 
	return [tuple(values) for values in out.values()] 
def group_tuples(Input):
    out = {}
    _elem_i = 0
    while _elem_i < len(Input):
        elem = Input[_elem_i]
        try:
           
            out[elem[0]].extend(elem[1:])
        except KeyError:
            out[elem[0]] = list(elem)
        _elem_i += 1
    return [tuple(values) for values in out.values()]