using snakes and updating database_pytools to get transition/operon logic functions