use
```python
isinstance(self.cfg[opt],(list,tuple,))
```