title: 'Cannot parse input stream' error when updating defects in Rally via pyral
body: <p>I am using the Python Toolkit for Rally REST API to update defects on our Rally server. I have confirmed that I am able to make contact with the server and authenticate fine by getting a list of current defects. I am running into issues with updating them. I am using Python 2.7.3 with pyral 0.9.1 and requests 0.13.3.</p>
  
  <p>Also, I am passing 'verify=False' to the Rally() call and have made appropriate chages to the 
  restapi module to compensate for this.</p>
  
  <p>Here is my test code:  </p>
  
  <pre><code>import sys
  from pyral import Rally, rallySettings
  
  server = "rallydev.server1.com"
  user = "user@mycompany.com"
  password = "trial"
  workspace = "trialWorkspace"
  project = "Testing Project"
  defectID = "DE192"
  
  rally = Rally(server, user, password, workspace=workspace,
                project=project,     verify=False)
  defect_data = { "FormattedID" : defectID,
                  "State"       : "Closed"
                }
  try:
      defect = rally.update('Defect', defect_data)
  except Exception, details:
      sys.stderr.write('ERROR: %s \n' % details)
      sys.exit(1)
  
  print "Defect %s updated" % defect.FormattedID
  </code></pre>
  
  <p>When I run the script:  </p>
  
  <pre><code>[temp]$ ./updefect.py  
  ERROR: Unable to update the Defect  
  </code></pre>
  
  <p>If I change the code in the RallyRESTResponse function to print out the value of self.errors when found (line 164 of rallyresp.py), I get this output:</p>
  
  <pre><code>[temp]$ ./updefect.py   
  [u"Cannot parse input stream due to I/O error as JSON document: Parse error: expected '{' but saw '\uffff' [ chars read = &gt;&gt;&gt;\uffff&lt;&lt;&lt; ]"]  
  ERROR: Unable to update the Defect  
  </code></pre>
  
  <p>I did find another question that sounds like it might possibly be related to mine here:<br>
  <a href="https://stackoverflow.com/questions/8450975/app-sdk-erorr-parsing-input-stream-when-running-query">App SDK: Erorr parsing input stream when running query</a>  </p>
  
  <p>Can you provide any assistance?</p>