GONRG-3210: Make code to be compliant with PyType checker

5 jobs for GONRG-3120_Add_static_analyzer in 4 minutes and 10 seconds (queued for 2 seconds)