Hi,
aalink is a Python extension for synchronizing code to a beat. It is
built for interactive applications using asyncio event loops and is
compatible with Ableton Link. Use it to add rhythm and groove to your
scripts!
https://github.com/artfwo/aalink
Best,
Artem