from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
element = WebDriverWait(driver, 30).until(
EC.presence_of_element_located((By.ID, "myDynamicElement"))
)
driver.implicitly_wait(10) #Waits 10 seconds implicitly