import bpyempties = [el for el in bpy.data.objects if el.type == "EMPTY"]for el in empties: el.empty_draw_type = 'SPHERE' el.empty_draw_size = 8