Using Python to pull files from GitHub : <p>I am trying to find a way to use Python to pull files from a Github account. 
The only answers I seem to find is from 2013:</p>

<pre><code>import requests
from os import getcwd

url = "https://raw.githubusercontent.com/Nav-aggarwal09/hello-world/master/README.doc"
directory = getcwd()
filename = directory + 'README.doc'
r = requests.get(url)

f = open(filename, 'w')
f.write(r)
</code></pre>

<p>The above code does not seem to work. Can someone please tell me how to fix this code or give another way to do it through example? Thank you</p>
