Read A Simple Guide to Shared Memory in Python. Interesting the idea to synchonize access with file locks. There’s also more traditional example of using semaphores.

Read Aerodynamics in racing multirotors Part 1, Aerodynamics in racing multirotors Part 2.