How to call python script in UIVision

Thank you for your help, but calling the python script is not my issue, i used the thread, but my problem is i need the output from the python script to be saved into a csv so i can process it later,

1 i get data from web
2 i process the data with python and get a csv
3 i read the csv and
4 do funny things.

The problem is in your example:

  {
      "Command": "XRunAndWait",
      "Target": "C:\\python27\\python.exe ",
      "Value": "c:\\test\\square.py ${a}"
    },

it should be:

  {
      "Command": "XRunAndWait",
      "Target": "C:\\python27\\python.exe ",
      "Value": "c:\\test\\square.py ${a} > file.csv"
    },

But the file.csv is not created