switch from popen2 to subprocess (fix deprecation warnings)

UCC git Repository :: git.ucc.asn.au