some python tools for working with bnets