Simple python jailbreak CTF task. To start:

with __builtins__.__dict__['op' + 'en']('flag.txt') as f: print(f.__iter__().__next__())

and you have your flag