Here is a Python script:

{{ d['script.py|pyg'] }}

Here is the output:

{{ d['script.py|py'] | assert_contains("3.14") }}