26902 Initial code review

Created a branch from the very first commit to be able to review the whole code written so far.
This does not mean that a merge should be done after the review is done, this is a "dummy" pull request.
It would be more readable ( and more PEP8 compliant ) if written like this ( manually typed beware of typos ! ):
````
sg_data = self.shotgun.find_one(
      publish_type, [
              [type_link_field, "is", self.get_setting("flame_batch_publish_type")],
              ["entity", "is", self.context.entity],
      ],
      ["path"],
      order=[{"field_name": "created_at", "direction": "desc"}],
)
```