pivot vertices around 3d curser

I’m using this to rotate vertices:
bpy.ops.transform.rotate(value=1.5708, axis=(-1, 0, 0), constraint_axis=(False, False, False), constraint_orientation=‘GLOBAL’, mirror=False, proportional=‘DISABLED’, proportional_edit_falloff=‘SMOOTH’, proportional_size=1)

it seems to ignore what I have set as the pivot point. I need the pivot point to be the 3d curser or just (0, 0, 1).