Hi HN,<p>Pr. Marc Feeley and I have just released a new module for Gambit. The 'python' module is available at <a href="https://github.com/gambit/python" rel="nofollow">https://github.com/gambit/python</a>. It is a Foreign Function Interface (FFI) to CPython which combines a low-level API with a syntactic interface that allows Gambit users to interface with Python code. The module also offers a Foreign Procedure Call mechanism that bridges the CPython and Gambit threading models.<p>For example, it is now possible for Gambit users to import Python modules as such:<p>> \import math<p>> (cos \math.pi)<p>-1.<p>This module requires a recent Gambit version compiled with the '--enable-multiple-threaded-vms' option. The GitHub repo contains a short README with instructions as well as a few examples to get you started. We will be giving a talk about our work at the upcoming Scheme Workshop (<a href="https://icfp22.sigplan.org/details/scheme-2022-papers/7/An-FFI-between-Gambit-Scheme-and-CPython" rel="nofollow">https://icfp22.sigplan.org/details/scheme-2022-papers/7/An-F...</a>). You can get a preprint of the accompanying article at <a href="https://andykeep.com/SchemeWorkshop2022/scheme2022-final22.pdf" rel="nofollow">https://andykeep.com/SchemeWorkshop2022/scheme2022-final22.p...</a> .<p>We had fun developing this and while there are still a few known kinks, the software is generally quite stable and enjoyable. Please notify us of any problems, or just to showcase your work!<p>Cheers!