def add_colors(*args):
    ''' Do some *args magic to return a tuple, which has the sums of all tuples in *args '''
    # Adapted from an answer here: http://stackoverflow.com/questions/14180866/sum-each-value-in-a-list-of-tuples
    added = [sum(x) for x in zip(*args)]
    return numpy.clip(added, 0, 255)
def add_colors ( * args ) : added = [ sum ( x ) for x in zip ( * args ) ] return numpy . clip ( added , 0 , 255 )
Do some *args magic to return a tuple, which has the sums of all tuples in *args