scripted rotation of group

I have created a group of meshes which I would like to scale and then rotate around the origin using python scripting. Rotating and scaling the whole group works fine using the S and R key, but it is pretty unprecise. Rotating and scaling single objects is easy but I cannot find how to do this with the whole group (especially because I do not want to rotate each obect around its own axis but rather around the origin of the group which I set to (0,0,0))
Thank you very much for your help

Group in Blender is intended as a “collection” of objects for managing them as a unit. If you want to transform the whole collection, you need to use Parenting.

thank you very much for your reply. Could you briefly explain to me how to accomplith that using the python console?