title: AttributeError: 'NoneType' object has no attribute 'write'
body: <p>I am trying to run a game me and my friends made in python... It was sent to me by e-mail. 
  i know i have a newer version of python but im not sure if that is the problem.
  This is the function we defined:</p>
  
  <pre><code>def text(x,y,text,size):
      turtle.penup()
      turtle.goto(x,y)
      turtle.pendown()
      turtle.write(text,font=('Arial',size,'normal'))
  </code></pre>
  
  <p>we call it here:</p>
  
  <pre><code>def home_screen():
      turtle.bgpic("bgarmy.gif")
      turtle.fillcolor("#46B347")
      turtle.fill(True)
      rectangle(-150,100,300,100)
      turtle.fill(False)
      text(-70,130,"Epicry",30)
      turtle.fill(True)
      rectangle2(-100,0,200,50)
      turtle.fill(False)
      text(-35,10,"Start",20)
      turtle.fill(True)
      rectangle2(-100,-100,200,50)
      turtle.fill(False)
      text(-70,-90,"Instructions",20)
      turtle.listen()
      turtle.onscreenclick(onClick)
      turtle.mainloop()
  </code></pre>
  
  <p>and when i try to run it, i get this error:</p>
  
  <pre><code>Traceback (most recent call last):
  File "C:\Python33\Lets Fight1\HomeScreen.py", line 2, in &lt;module&gt;
  import movesoldier
  File "C:\Python33\lib\idlelib\PyShell.py", line 60, in idle_showwarning
  file.write(warnings.formatwarning(message, category, filename,
  AttributeError: 'NoneType' object has no attribute 'write'
  </code></pre>
  
  <p>does anyone know what this means?</p>