Perhaps wrap this up by the first parenthesis?

```python
element = self.wait_until_element(
    (locators["operatingsys.operatingsys_name"][0],
    locators["operatingsys.operatingsys_name"][1] % os_name))
```