Generation of python script with proxy settings