A simple clean distributed state prevalance library for C/C++ and Python