Change print statement to Py3 syntax.
Open process with popen using with statement to fix "ResourceWarning unclosed file" messages.