What I did was create a list of nodes and evaluate it with the Lambda function to avoid external files or the unnecessary creation of HDA containers, so this way I can choose which nodes to target.
(lambda bypass_value: [hou.node(path).bypass(bypass_value) for path in hou.parm("/obj/SCENE_001/CTRL/bypassNodes").eval().split()])(hou.parm("/obj/SCENE_001/CTRL/bypass").eval())
Long live to Houdini!
...