libtaskmanager: set environment in python script

Reason for the change

The script can be run locally without specifying some environment variables.

Test plan

Screenshots or screen recordings

Bugs fixed

Merge request reports

Loading