Boolean networks in python