you do not need dict type anymore. Please just use: world.auto_capture_screenshots = False