Unable to run python script in UiPath

Try reading the documentation of the Python Scope.
Until them play with configuration for Target and Version in the Properties panel.