Version with RIVE refactoring - last Python 2 version