The following code is not working. The selenium web driver just continues through without waiting even though neither of the elements are visible on the page. Therefore the assertion fails.
element = WebDriverWait(self.driver, 30).until(
lambda x: (EC.visibility_of_element_located((By.ID, "export_errors_button"))) or
(EC.visibility_of_element_located((By.ID, "finish_button")))
)
assert "finish_button" in element.get_attribute('id').split()