If PYTHONPATH contains multiple directories separated by ";" the RunCommand is not correct.
RunCommand = "python -c ""import sys; sys.path.append(r'" & PYTHONPATH & "'); " & Command & """ "
can be replaced by
RunCommand = "python -c ""import sys; sys.path.extend(r'" & PYTHONPATH & ".split(";")'); " & Command & """ "
If PYTHONPATH contains multiple directories separated by ";" the RunCommand is not correct.
can be replaced by