Seems a little complex, you just want to get bridge? I think this will be more simple:
```
 op=op.stdout.strip()
if op:
    v_brdg = op.split()[-1]
    v_brdgs.append(v_brdg)
```
Perhaps something I missed ,if I'm wrong please tell me :)