capabilities = DesiredCapabilities.FIREFOX
capabilities['marionette'] = True
browser = webdriver.Firefox(firefox_profile=profile, capabilities=capabilities)
Firefox launched with Selenium differs from System Default Firefox settings