Blender 3.1+ don't set frame range and fps on open
 ## Description

With Blender 3.1+ with `register_event_callback` : `on_new` and `on_open` the function `set_start_end_frames` raise an error and donc set the frame range properly.

## To Reproduce

- Just open a shot task with setted `frameStar`,  `frameEnd` and `fps`

## Expected behavior

Blender 3.1+ expected FPS as integer : 
```python
# fps is an int, fps_base is a float
fps = bpy.context.scene.render.fps /  bpy.context.scene.render.fps_base
# so to set fps from data
bpy.context.scene.render.fps = round(fps)
bpy.context.scene.render.fps_base = round(fps) / fps
```

## Traceback
```
Traceback (most recent call last):
  File "/Volumes/D11-TRAVAIL/DEV/OpenPype/openpype/lib/events.py", line 156, in process_event
    callback()
  File "/Volumes/D11-TRAVAIL/DEV/OpenPype/openpype/hosts/blender/api/pipeline.py", line 125, in on_new
    set_start_end_frames()
  File "/Volumes/D11-TRAVAIL/DEV/OpenPype/openpype/hosts/blender/api/pipeline.py", line 119, in set_start_end_frames
    scene.render.fps = fps
TypeError: bpy_struct: item.attr = val: RenderSettings.fps expected an int type, not float`
```

## Desktop:
 - OS: MacOS
 - Host: Blender3.1.2


[cuID:OP-3490]
diff --git a/openpype/hosts/blender/api/pipeline.py b/openpype/hosts/blender/api/pipeline.py
index 93d81145bc..ea405b028e 100644
--- a/openpype/hosts/blender/api/pipeline.py
+++ b/openpype/hosts/blender/api/pipeline.py
@@ -93,7 +93,7 @@ def set_start_end_frames():
     # Default scene settings
     frameStart = scene.frame_start
     frameEnd = scene.frame_end
-    fps = scene.render.fps
+    fps = scene.render.fps / scene.render.fps_base
     resolution_x = scene.render.resolution_x
     resolution_y = scene.render.resolution_y
 
@@ -116,7 +116,8 @@ def set_start_end_frames():
 
     scene.frame_start = frameStart
     scene.frame_end = frameEnd
-    scene.render.fps = fps
+    scene.render.fps = round(fps)
+    scene.render.fps_base = round(fps) / fps
     scene.render.resolution_x = resolution_x
     scene.render.resolution_y = resolution_y
 
['openpype/hosts/blender/api/pipeline.py']