How to rotate scene via python script?
Thanks to batFINGER I've found the answer

import bpy
from mathutils import Euler

for area in bpy.context.screen.areas:
    if area.type == 'VIEW_3D':
        area.spaces.active.region_3d.view_rotation.rotate(Euler((0, 0, 0.01)))