chrome_options.add_experimental_option('prefs', {
    'profile.managed_default_content_settings.images': 2})
chrome = webdriver.Chrome('/path/to/chromedriver', chrome_options=
    chrome_options)
Set chrome.prefs with python binding for selenium in chromedriver