title: PyOpenGL TypeError: 'NoneType' object is not callable
body: <p>I am trying to learn the basics of game programming and I have installed <code>pygame</code> and <code>pyopengl</code> for that.</p>
  
  <p>MyCode:</p>
  
  <pre><code>import sys
  import OpenGL
  
  from OpenGL.GL import *     
  from OpenGL.GLU import *    
  from OpenGL.GLUT import *
  
  def draw():
        glClear(GL_COLOR_BUFFER_BIT)
        glutWireTeapot(0.5)
        glFlush()
  
  glutInit(sys.argv)
  glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB)
  glutInitWindowSize(250, 250)
  glutInitWindowPosition(100, 100)
  glutCreateWindow("Python OGL Program")
  glutDisplayFunc(draw)
  glutMainLoop()
  
  draw()
  </code></pre>
  
  <p>When I run the above code in my command prompt using</p>
  
  <pre><code>python test.py
  </code></pre>
  
  <p>I get the following error.</p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 13, in &lt;module&gt;
      glutInit(sys.argv)
    File "C:\Python27\lib\site-packages\pyopengl-3.0.2a5-py2.7.egg\OpenGL\GLUT\special.py", line 324, in glutInit
      _base_glutInit( ctypes.byref(count), holder )
  TypeError: 'NoneType' object is not callable
  </code></pre>
  
  <p>I don't understand why I am getting this error. Am I calling <code>glutinit</code> in a wrong way?</p>
  
  <p>I am using Python 2.7.2.</p>