Get Walls inside BoundingBox (Python)

Ok, there was a mistake with my coordinates, the code works fine with an element.boundingbox:

But how to get it to work with a “self created” boundingbox ? :thinking:

still that strange error: