fix: PythonFunction in test_simulator