--- a/python/python_support.c	2023-02-22 20:16:04.746476700 +0100
+++ b/python/python_support.c	2023-02-22 20:18:46.762891565 +0100
@@ -814,13 +814,13 @@
 PyCodeObject*
 ada_pyframe_get_code (PyFrameObject* obj)
 {
-   return obj->f_code;
+   return PyFrame_GetCode(obj);
 }
 
 PyFrameObject*
 ada_pyframe_get_back (PyFrameObject* obj)
 {
-   return obj->f_back;
+   return PyFrame_GetBack(obj);
 }
 
 PyObject*
