Attempting to extend devast8a's sandboxing to generators.