The child return code. Initially None, returncode is set by a call to the poll(), wait(), or communicate() methods if they detect that the process has terminated.
subprocess/Popen.returncode
Popen.returncode