title: How import .py in python script
body: <p>i'm trying to import the BeautifulSoup library directly in my python script, i can't install it because i'm using it in my Synology DS213+, so i'm trying to do this:</p>
  
  <pre><code>from BeautifulSoup import BeautifulSoup
  import urllib, urllib2
  
  opener = urllib2.build_opener(urllib2.HTTPHandler(debuglevel=0))
  opener.addheaders = [('User-agent', 'Mozilla/5.0')]
  
  ins = open( "str.txt", "r" )
  array = []
  for line in ins:
      array.append(line.strip())
  ins.close()
  
  for riga in array:
      print riga
      html = opener.open("http://www.mysite.com/?s="+riga)
      soup = BeautifulSoup(html)
      soup.find_all('a')
      for link in soup.find_all('a'):
          print link.get('href')
  </code></pre>
  
  <p>but i receive this error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "myscript.py", line 17, in &lt;module&gt;
      soup.find_all('a')
  TypeError: 'NoneType' object is not callable
  </code></pre>
  
  <p>i can't understand why, i put BeautifulSoup.py in the myscript.py directory, and i import in this way:</p>
  
  <pre><code>from BeautifulSoup import BeautifulSoup
  </code></pre>
  
  <p>what is wrong?</p>