Python-based Emulation for Developing Material Flow Controls in CRunning C code as part of a Python simulation using CFFI