from selenium.webdriver.support.select import Select
Select(self.driver.find_element_by_id("edu_from_month")).select_by_value("8")
time.sleep(3)
Select(self.driver.find_element_by_id("edu_from_year")).select_by_value("2018")
time.sleep(3)
Select(self.driver.find_element_by_id("edu_to_month")).select_by_value("10")
time.sleep(3)
Select(self.driver.find_element_by_id("edu_to_year")).select_by_value("2020")