starts a generator when created

def started(generator_function):
    """ starts a generator when created """
    @wraps(generator_function)
    def wrapper(*args, **kwargs):
        g = generator_function(*args, **kwargs)
        next(g)
        return g
    return wrapper