Exclude static libraries and tests to reduce zipped Python executables (#758)

diff --git a/python/repositories.bzl b/python/repositories.bzl
index 5061078..b0af316 100644
--- a/python/repositories.bzl
+++ b/python/repositories.bzl
@@ -144,6 +144,12 @@
         allow_empty = True,
         exclude = [
             "**/* *", # Bazel does not support spaces in file names.
+            # static libraries
+            "lib/*.a",
+            "lib/**/*.a",
+            # tests for the standard libraries.
+            "lib/python{python_version}/**/test/**",
+            "lib/python{python_version}/**/tests/**",
         ],
     ),
 )