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
def started ( generator_function ) : @ wraps ( generator_function ) def wrapper ( * args , ** kwargs ) : g = generator_function ( * args , ** kwargs ) next ( g ) return g return wrapper
starts a generator when created