Use this if you want to to make render faster :D
import bpy
context = bpy.context
for obj in context.selected_objects:
for slot in obj.material_slots:
mat_slot = slot.material
mat_slot.use_raytrace = 0
mat_slot.use_mist = 0