Fixing pipe stderr to stdout
Using proc.communicate and adding proc.returncode