title: IOError: [Errno 13] Permission denied
body: <p>I have this piece of code to create a .json file to store python data. When i run it in my server i get this error:</p>
  
  <pre><code>IOError: [Errno 13] Permission denied: 'juliodantas2015.json' at line with open(output_file, 'wb') as fp:
  </code></pre>
  
  <p><strong>Python code:</strong></p>
  
  <pre><code>fich_input='juliodantas2015.txt'
  output_file= fich_input.strip('.txt')+'.json'
  import json
  with open(output_file, 'wb') as fp:
      json.dump('yes', fp)
  </code></pre>
  
  <p>In command line i typed <strong>chmod 777 *.py</strong> but still not working. How can i fix this ?</p>