Dependency networks in C++ with Python bindings