subp = subprocess.Popen(['curl', '-O', imgurl], stdout=subprocess.PIPE,
    stderr=subprocess.PIPE)
curlstdout, curlstderr = psub.communicate()
op = str(curlstdout)
What is correct method to execute curl from a subprocess?