workflows: pull request correction

* Corrects PEP8.

* Corrects imports.

* Corrects task_result type change.

Signed-off-by: Guillaume Lastecoueres <guillaume.lastecoueres@cern.ch>