title: Getting error: write() takes no keyword arguments
body: <pre><code>gd = open("gamedata.py" , "rb+")
  
  gd.write(CharHealth = 100)
  
  gd.close
  </code></pre>
  
  <p>I'm receiving the error message: write() takes no keyword arguments, and I cannot figure out why. My best interpretation is that the code is trying to interpret <code>(CharHealth = 100)</code> as a keyword argument instead of writing it to gamedata.py. </p>
  
  <p>I want to write <code>(CharHealth = 100)</code> (as a line of code) along with other code to gamedata.py</p>