roll: pigweed, pw_toolchain: bazel: Enable bzlmod

Removes --noenable_bzlmod from Pigweed's .bazelrc and applies necessary
changes to get the build working again. Also makes Pigweed usable as a
bzlmod dependency.

Most of the file changes in this CL are Python import statement changes
required because of
https://github.com/bazelbuild/rules_python/issues/1679.

Original-Bug: b/258836641
Original-Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/211362
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>

https://pigweed.googlesource.com/pigweed/pigweed
pigweed, pw_toolchain Rolled-Commits: 4f0412dae17b20a..00d99767eb5ad66
Roller-URL: https://ci.chromium.org/b/8741667154616515185
GitWatcher: ignore
CQ-Do-Not-Cancel-Tryjobs: true
Change-Id: I5437982f041b87873fb4d81e4113584038a3f1cf
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/quickstart/bazel/+/225374
Bot-Commit: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Commit-Queue: Pigweed Roller <pigweed-roller@pigweed-service-accounts.iam.gserviceaccount.com>
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
diff --git a/WORKSPACE b/WORKSPACE
index db07488..5d2308d 100644
--- a/WORKSPACE
+++ b/WORKSPACE
@@ -83,18 +83,18 @@
 git_repository(
     name = "pigweed",
     # ROLL: Warning: this entry is automatically updated.
-    # ROLL: Last updated 2024-07-22.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8741677790652058417.
-    commit = "4f0412dae17b20affc33d7162d584175861524be",
+    # ROLL: Last updated 2024-07-23.
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8741667154616515185.
+    commit = "00d99767eb5ad6620161b1910bc3c874830a2d8a",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed.git",
 )
 
 git_repository(
     name = "pw_toolchain",
     # ROLL: Warning: this entry is automatically updated.
-    # ROLL: Last updated 2024-07-22.
-    # ROLL: By https://cr-buildbucket.appspot.com/build/8741677790652058417.
-    commit = "4f0412dae17b20affc33d7162d584175861524be",
+    # ROLL: Last updated 2024-07-23.
+    # ROLL: By https://cr-buildbucket.appspot.com/build/8741667154616515185.
+    commit = "00d99767eb5ad6620161b1910bc3c874830a2d8a",
     remote = "https://pigweed.googlesource.com/pigweed/pigweed.git",
     strip_prefix = "pw_toolchain_bazel",
 )