I am trying to open a subprocess so that i can open cygwin.bat file from a python script. I need to extract data from ctag parser. To extract this data I am using following command :

```
 ctags --c-kinds=vf --fields=+SKz -f - Name_of_file

```

It gives me variables and functions from the file on command line. 
This data I have to put in a file using python script. How to do this?