Minimal fixes to save the bootstrap on OSX.
diff --git a/Lib/distutils/sysconfig.py b/Lib/distutils/sysconfig.py
index ea2e059..51f23a2 100644
--- a/Lib/distutils/sysconfig.py
+++ b/Lib/distutils/sysconfig.py
@@ -11,6 +11,7 @@
 
 __revision__ = "$Id$"
 
+import io
 import os
 import re
 import sys
@@ -353,7 +354,7 @@
     # load the installed pyconfig.h:
     try:
         filename = get_config_h_filename()
-        parse_config_h(open(filename), g)
+        parse_config_h(io.open(filename), g)
     except IOError as msg:
         my_msg = "invalid Python installation: unable to open %s" % filename
         if hasattr(msg, "strerror"):