how to run python query directly from teamcity : I 2 machines on which I need to download Anaconda.sh and some compiler zipped files. One machine is Linux and I downloaded all zip files plus .sh files using below curl command :-
    curl -s -o cmake-3.4.1-Linux-x86_64.tar.gz  http://ccm-
    XYZ/tools/cmake-3.4.1-Linux-x86_64.tar.gz

As this is the linux machine, I am calling it from teamcity and its working fine as expected. Unfortunately, getting issue with the Windows machine as usually we get error on windows. 

I want the same behaviour for windows also. I want to download .gz file as mentioned above from the teamcity build step. And then need to extract it. As of now, I am using python script as below :-
    import subprocess
    subprocess.call("curl -s -o cmake-3.4.1-Linux-x86_64.tar.gz  
    http://tools/cmake-3.4.1-Linux-x86_64.tar.gz", shell=True)

It is not running. I think here, the issue is with the running of python commands. Any suggestions here. How can I do that, how can I get into python interactive mode to run the python scripts ??

Thanks in advance.....!!