Need clear explanation about how to download a file in python
<p>I needed to download a file within a python program, someone told me to do this.</p>

<pre><code>source = urllib2.urlopen("http://someUrl.com/somePage.html").read()
open("/path/to/someFile", "wb").write(source)
</code></pre>

<p>It working very well, but I would like to understand the code.</p>

<p>When you have something like</p>

<pre><code>patatoe = 1
</code></pre>

<p>Isn't a variable? </p>

<p>and when you have a something like:</p>

<pre><code>blabla()
</code></pre>

<p>isn't to define a function?</p>

<p>Please, I would LOVE to understand correctly the code.</p>
