Edit: _next_gen.py