title: IO Error while storing data in pickle
body: <p>i have a following code in a python to store data in pickle , but i am getting IO Error</p>
  
  <pre><code>[Errno 13] Permission denied: 'data.pkl'
  </code></pre>
  
  <p>Code</p>
  
  <pre><code>def SaveUserData(request):
         datalist={}
         datalist['empid']='127113'
         datalist['empname']='eric'
         datalist['empphone']='66335500'
         datalist['email']='eric.pk@moliba.com'
         output = open('data.pkl', 'wb')
         pickle.dump(datalist, output)
         output.close()
         data = simplejson.dumps(datalist, indent=4)
         return HttpResponse(data,mimetype='application/javascript')
  </code></pre>