py_grist_api uses python-future which is broken on Python 3.12 because imp module was removed. Even though this issue was fixed a month and half ago, no release fix has been published yet.
Is python-future still necessary? Support for Python 2.7 has ended nearly 3 years ago now and the oldest still supported Python version is 3.8.