Issue #22637: avoid using a shell in uuid

Replace os.popen() with subprocess.Popen() in the uuid module.
Issue22506: remove name & value from __dir__ as they now show up automatically