firefox_profile.set_preference('thatoneguydotnet.QuickJava.startupStatus.CSS',
    2)
firefox_profile.set_preference(
    'thatoneguydotnet.QuickJava.startupStatus.Cookies', 2)
firefox_profile.set_preference('thatoneguydotnet.QuickJava.startupStatus.Flash'
    , 2)
firefox_profile.set_preference('thatoneguydotnet.QuickJava.startupStatus.Java',
    2)
firefox_profile.set_preference(
    'thatoneguydotnet.QuickJava.startupStatus.JavaScript', 2)
firefox_profile.set_preference(
    'thatoneguydotnet.QuickJava.startupStatus.Silverlight', 2)
Disable images in Selenium Python