title: Pygame compile() expected string without null bytes
body: <p>So I'm new to pygame and I'm trying to compile the simplest program I can think of, to open a window. However, I tried two different compiling methods I found on the internet and both of them give me this:</p>
  
  <pre><code>error: compiling 'C:\Python27\lib\email\parser.py' failed
  TypeError: compile() expected string without null bytes
  </code></pre>
  
  <p>I also found a thread on here that suggested import json and I tried that and it still didn't work.</p>
  
  <p>Here's the code I'm using:</p>
  
  <pre><code>import pygame, sys
  import json
  from pygame.locals import *
  
  pygame.init()
  DISPLAYSURF = pygame.display.set_mode((400, 300))
  pygame.display.set_caption('Hello World!')
  while True: # main game loop
      for event in pygame.event.get():
          if event.type == QUIT:
              pygame.quit()
              sys.exit()
      pygame.display.update()
  </code></pre>
  
  <p>I tried to use the code I found here:
  <a href="http://pygame.org/wiki/Pygame2exe?parent=" rel="nofollow">http://pygame.org/wiki/Pygame2exe?parent=</a> </p>
  
  <p>and here: <a href="http://pythoncentral.io/py2exe-python-to-exe-introduction/" rel="nofollow">http://pythoncentral.io/py2exe-python-to-exe-introduction/</a></p>
  
  <p>What's happening here and how can I fix it?</p>