from selenium import webdriver
options = webdriver.FirefoxOptions()
options.add_argument('--start-maximized')
browser = webdriver.Remote(
command_executor='http://selenium_firefox:4444/wd/hub',
desired_capabilities=options.to_capabilities(),
options=options,
)
browser.get('https://www.google.com/')