2.8 Rotate multiple objects around the origin in edit mode?
here's the version I had to use in my script to set the pivot point to work in blender 2.80.   by setting the transform to rotatate around the cursor, all objects will rotate around that locations and you can use shift+s to place the cursor.

context.scene.tool_settings.transform_pivot_point = 'CURSOR'