It's imported in the top of the file. It looked like it's not important, but while I was testing it on OSX (see the changes in my comment) I got a strange error when trying to use the `subprocess` module: `NameError: free variable 'subprocess' referenced before assignment in enclosing scope`. Deleting the import statement fix the problem.