Subprocess is a module. You need to import it.
Put this as the second line in your file: import subprocess
import subprocess
1.4m articles
1.4m replys
5 comments
57.0k users