title: Python error : X() takes exactly 1 argument (8 given)
body: <p>I'm trying to bulid an Anonymous FTP scanner , but i got an error about calling function X , i defined X to recieve ony 1 arguement which is the ip address , the same code works if i don't use the loop and send the IPs one by one .</p>
  
  <p>The error is : X() takes exactly 1 argument (8 given)</p>
  
  <pre><code>from ftplib import FTP
  import ipcalc
  from threading import Thread
  
  
  def X (ip):
      try:
          ftp = FTP(ip)
          x = ftp.login()
          if 'ogged' in  str(x):
              print '[+] Bingo ! we got a Anonymous FTP server IP: ' +ip
      except:
          return
  
  
  def main ():
      global ip
      for ip in ipcalc.Network('10.0.2.0/24'):
          ip = str(ip)
          t =  Thread (target = X, args = ip)
          t.start()
  main ()
  </code></pre>