title: How do I get rid of unwanted debug output when importing pyobjc AppKit with Python 3.7
body: <p>A script consisting of a single statement</p>
  
  <pre class="lang-py prettyprint-override"><code>import AppKit
  </code></pre>
  
  <p>Prints the following to stdout/stderr with Python 3.7 (maybe also other 3.x versions but not with Python 2.7)</p>
  
  <pre><code>bool b'B' &lt;classmethod object at 0x10b41e510&gt; &lt;function ivar.bool at 0x10b464440&gt;
  char b'c' &lt;classmethod object at 0x10b41e4d0&gt; &lt;function ivar.char at 0x10b4644d0&gt;
  int b'i' &lt;classmethod object at 0x10b41e0d0&gt; &lt;function ivar.int at 0x10b464560&gt;
  short b's' &lt;classmethod object at 0x10b41e210&gt; &lt;function ivar.short at 0x10b4645f0&gt;
  long b'l' &lt;classmethod object at 0x10b41a790&gt; &lt;function ivar.long at 0x10b464680&gt;
  long_long b'q' &lt;classmethod object at 0x10b41af50&gt; &lt;function ivar.long_long at 0x10b464710&gt;
  unsigned_char b'C' &lt;classmethod object at 0x10b41aa50&gt; &lt;function ivar.unsigned_char at 0x10b4647a0&gt;
  unsigned_int b'I' &lt;classmethod object at 0x10b41afd0&gt; &lt;function ivar.unsigned_int at 0x10b464830&gt;
  unsigned_short b'S' &lt;classmethod object at 0x10b41af10&gt; &lt;function ivar.unsigned_short at 0x10b4648c0&gt;
  unsigned_long b'L' &lt;classmethod object at 0x10b41ac90&gt; &lt;function ivar.unsigned_long at 0x10b464950&gt;
  unsigned_long_long b'Q' &lt;classmethod object at 0x10b41ad10&gt; &lt;function ivar.unsigned_long_long at 0x10b4649e0&gt;
  float b'f' &lt;classmethod object at 0x10b41ad90&gt; &lt;function ivar.float at 0x10b464a70&gt;
  double b'd' &lt;classmethod object at 0x10b41ae50&gt; &lt;function ivar.double at 0x10b464b00&gt;
  BOOL b'Z' &lt;classmethod object at 0x10b41a5d0&gt; &lt;function ivar.BOOL at 0x10b464b90&gt;
  UniChar b'T' &lt;classmethod object at 0x10b41a9d0&gt; &lt;function ivar.UniChar at 0x10b464c20&gt;
  char_text b't' &lt;classmethod object at 0x10b41a910&gt; &lt;function ivar.char_text at 0x10b464cb0&gt;
  char_int b'z' &lt;classmethod object at 0x10b41ab90&gt; &lt;function ivar.char_int at 0x10b464d40&gt;
  CFXMLEntityInfo b'{_CFXMLEntityInfo=q^{__CFString=}{_CFXMLExternalID=^{__CFURL=}^{__CFString=}}^{__CFString=}}' &lt;classmethod object at 0x10b4eee10&gt; &lt;function ivar.CFXMLEntityInfo at 0x10b4c4cb0&gt;
  CFXMLElementInfo b'{_CFXMLElementInfo=^{__CFDictionary=}^{__CFArray=}Z[3c]}' &lt;classmethod object at 0x10b4f30d0&gt; &lt;function ivar.CFXMLElementInfo at 0x10b4c4d40&gt;
  CFXMLAttributeListDeclarationInfo b'{_CFXMLAttributeListDeclarationInfo=q^{_CFXMLAttributeDeclarationInfo=^{__CFString=}^{__CFString=}^{__CFString=}}}' &lt;classmethod object at 0x10b4f3210&gt; &lt;function ivar.CFXMLAttributeListDeclarationInfo at 0x10b4c4e60&gt;
  CFXMLElementTypeDeclarationInfo b'{_CFXMLElementTypeDeclarationInfo=^{__CFString=}}' &lt;classmethod object at 0x10b4f33d0&gt; &lt;function ivar.CFXMLElementTypeDeclarationInfo at 0x10b4c4ef0&gt;
  CFGregorianDate b'{_CFGregorianDate=iccccd}' &lt;classmethod object at 0x10b4f3690&gt; &lt;function ivar.CFGregorianDate at 0x10b4f7050&gt;
  CFXMLExternalID b'{_CFXMLExternalID=^{__CFURL=}^{__CFString=}}' &lt;classmethod object at 0x10b4f3810&gt; &lt;function ivar.CFXMLExternalID at 0x10b4f70e0&gt;
  CFUUIDBytes b'{_CFUUIDBytes=CCCCCCCCCCCCCCCC}' &lt;classmethod object at 0x10b4f3d50&gt; &lt;function ivar.CFUUIDBytes at 0x10b4f7170&gt;
  CFXMLAttributeDeclarationInfo b'{_CFXMLAttributeDeclarationInfo=^{__CFString=}^{__CFString=}^{__CFString=}}' &lt;classmethod object at 0x10b4f3f10&gt; &lt;function ivar.CFXMLAttributeDeclarationInfo at 0x10b4f7200&gt;
  CFSwappedFloat32 b'{_CFSwappedFloat32=I}' &lt;classmethod object at 0x10b4fc0d0&gt; &lt;function ivar.CFSwappedFloat32 at 0x10b4f7290&gt;
  CFSwappedFloat64 b'{_CFSwappedFloat64=Q}' &lt;classmethod object at 0x10b4fc250&gt; &lt;function ivar.CFSwappedFloat64 at 0x10b4f7320&gt;
  CFXMLDocumentTypeInfo b'{_CFXMLDocumentTypeInfo={_CFXMLExternalID=^{__CFURL=}^{__CFString=}}}' &lt;classmethod object at 0x10b4fc3d0&gt; &lt;function ivar.CFXMLDocumentTypeInfo at 0x10b4f73b0&gt;
  CFStreamError b'{_CFStreamError=qi}' &lt;classmethod object at 0x10b4fc590&gt; &lt;function ivar.CFStreamError at 0x10b4f7440&gt;
  CFXMLEntityReferenceInfo b'{_CFXMLEntityReferenceInfo=q}' &lt;classmethod object at 0x10b4fc750&gt; &lt;function ivar.CFXMLEntityReferenceInfo at 0x10b4f74d0&gt;
  CFXMLProcessingInstructionInfo b'{_CFXMLProcessingInstructionInfo=^{__CFString=}}' &lt;classmethod object at 0x10b4fc950&gt; &lt;function ivar.CFXMLProcessingInstructionInfo at 0x10b4f7560&gt;
  CFRange b'{_CFRange=qq}' &lt;classmethod object at 0x10b4fcb50&gt; &lt;function ivar.CFRange at 0x10b4f7680&gt;
  CFSocketSignature b'{_CFSocketSignature=iii^{__CFData=}}' &lt;classmethod object at 0x10b4fcd50&gt; &lt;function ivar.CFSocketSignature at 0x10b4f7710&gt;
  CFXMLDocumentInfo b'{_CFXMLDocumentInfo=^{__CFURL=}I}' &lt;classmethod object at 0x10b4fced0&gt; &lt;function ivar.CFXMLDocumentInfo at 0x10b4f77a0&gt;
  CFGregorianUnits b'{_CFGregorianUnits=iiiiid}' &lt;classmethod object at 0x10b5041d0&gt; &lt;function ivar.CFGregorianUnits at 0x10b4f7830&gt;
  CFXMLNotationInfo b'{_CFXMLNotationInfo={_CFXMLExternalID=^{__CFURL=}^{__CFString=}}}' &lt;classmethod object at 0x10b504350&gt; &lt;function ivar.CFXMLNotationInfo at 0x10b4f78c0&gt;
  NSEdgeInsets b'{NSEdgeInsets=dddd}' &lt;classmethod object at 0x10b59ac90&gt; &lt;function ivar.NSEdgeInsets at 0x10b571560&gt;
  NSHashEnumerator b'{_NSHashEnumerator=QQ^v}' &lt;classmethod object at 0x10b59ae90&gt; &lt;function ivar.NSHashEnumerator at 0x10b5715f0&gt;
  NSAffineTransformStruct b'{_NSAffineTransformStruct=dddddd}' &lt;classmethod object at 0x10b59f150&gt; &lt;function ivar.NSAffineTransformStruct at 0x10b571680&gt;
  NSRect b'{CGRect={CGPoint=dd}{CGSize=dd}}' &lt;classmethod object at 0x10b59f310&gt; &lt;function ivar.NSRect at 0x10b571710&gt;
  NSOperatingSystemVersion b'{_NSOperatingSystemVersion=qqq}' &lt;classmethod object at 0x10b59f510&gt; &lt;function ivar.NSOperatingSystemVersion at 0x10b5717a0&gt;
  NSZone b'{_NSZone=}' &lt;classmethod object at 0x10b59f690&gt; &lt;function ivar.NSZone at 0x10b571830&gt;
  NSDecimal b'{_NSDecimal=b8b4b1b1b18[8S]}' &lt;classmethod object at 0x10b59f990&gt; &lt;function ivar.NSDecimal at 0x10b5718c0&gt;
  NSSize b'{CGSize=dd}' &lt;classmethod object at 0x10b59fb90&gt; &lt;function ivar.NSSize at 0x10b571950&gt;
  NSPoint b'{CGPoint=dd}' &lt;classmethod object at 0x10b59fd10&gt; &lt;function ivar.NSPoint at 0x10b5719e0&gt;
  NSSwappedDouble b'{_NSSwappedDouble=Q}' &lt;classmethod object at 0x10b59fe90&gt; &lt;function ivar.NSSwappedDouble at 0x10b571a70&gt;
  NSMapEnumerator b'{_NSMapEnumerator=QQ^v}' &lt;classmethod object at 0x10b5a70d0&gt; &lt;function ivar.NSMapEnumerator at 0x10b571b00&gt;
  NSSwappedFloat b'{_NSSwappedFloat=I}' &lt;classmethod object at 0x10b5a7250&gt; &lt;function ivar.NSSwappedFloat at 0x10b571b90&gt;
  NSRange b'{_NSRange=QQ}' &lt;classmethod object at 0x10b5a7450&gt; &lt;function ivar.NSRange at 0x10b571c20&gt;
  NSDirectionalEdgeInsets b'{NSDirectionalEdgeInsets=dddd}' &lt;classmethod object at 0x10b6d1d90&gt; &lt;function ivar.NSDirectionalEdgeInsets at 0x10b651710&gt;
  NSOpenGLPixelFormatAuxiliary b'{_CGLPixelFormatObject=}' &lt;classmethod object at 0x10b6d1ed0&gt; &lt;function ivar.NSOpenGLPixelFormatAuxiliary at 0x10b6517a0&gt;
  NSScreenAuxiliaryOpaque b'{NSScreenAuxiliary=}' &lt;classmethod object at 0x10b6d7050&gt; &lt;function ivar.NSScreenAuxiliaryOpaque at 0x10b651830&gt;
  NSOpenGLContextAuxiliary b'{_CGLContextObject=}' &lt;classmethod object at 0x10b6d7190&gt; &lt;function ivar.NSOpenGLContextAuxiliary at 0x10b6518c0&gt;
  </code></pre>
  
  <p>...Some details because SO has apparently reified its spirit of counterproductive pedantry into its product code and won't let me submit otherwise...</p>