ff = webdriver.Firefox()
ff.get('http://somedomain/url_that_delays_loading')
ff.find_element_by_xpath("//div[@class='searchbox']/input").send_keys('obama')
try:
    element = WebDriverWait(ff, 10).until(EC.presence_of_element_located((
        By.ID, 'keywordSuggestion')))
finally:
    ff.find_element_by_xpath("//div[@class='searchbox']/input").send_keys(Keys
        .RETURN)
ff.quit()
webdriver wait for ajax request in python