C# port of PyHarmony in reusable wrapper