old_contents: """
  Python 2 and 3 compatibility:
  
      - Py3k `memoryview()` made an alias for Py2k `buffer()`
      - Py3k `bytes()` made an alias for Py2k `str()`
  """
  import __builtin__
  import sys
  
  if sys.version_info[0] == 2:
      buffer = getattr(__builtin__, 'buffer')
      bytes = str
  
  else:
      # Python 2.6 flake8 workaround
      buffer = getattr(__builtin__, 'memoryview')
      bytes = bytes
  
new_contents: """
  Python 2 and 3 compatibility:
  
      - Py3k `memoryview()` made an alias for Py2k `buffer()`
      - Py3k `bytes()` made an alias for Py2k `str()`
  """
  try:
      import __builtin__ as builtins
  except ImportError:
      import builtins
  
  import sys
  
  if sys.version_info[0] == 2:
      buffer = getattr(builtins, 'buffer')
      bytes = str
  
  else:
      # Python 2.6 flake8 workaround
      buffer = getattr(builtins, 'memoryview')
      bytes = bytes
  
subject: Fix import for py3k