title: Python Multiprocessing function
body: <p>I have a function for example:</p>
  
  <pre><code>launcher(usr_login, usr_password)
  </code></pre>
  
  <p>which calls other python script + usr_login + usr_password as arguments.</p>
  
  <p>See:
  Function</p>
  
  <pre><code>launcher("login", "pass")
  </code></pre>
  
  <p>will execute function.py file as  <code>$function.py login pass</code><br>
  Subject:
  I have dict user_login : password, And I would like to be able launch a 'launcher' function in one time multithreaded / multiprocessed</p>
  
  <p>dict has login1 : pass1 , login2 : pass2
  So I need launch launcher(login1, pass1) and launcher(login2, pass2) in same time.
  Is there a way how to do it?
  Thank you</p>
  
  <pre><code># -*- coding: utf-8 -*-
  from config import users, ThCount
  from time import sleep
  from multiprocessing import Pool
  import os
  
  users = {}
  
  def launcher(usr_login, usr_password):
      os.system("C:\\Python34\\python.exe implementation.py %s %s" % (usr_login, usr_password))
  </code></pre>
  
  <p>Reply for comment #1
  If I use like this:</p>
  
  <pre><code>def launcher(usr_login, usr_password):
      os.system("C:\\Python34\\python.exe implementation.py %s %s" % (usr_login, usr_password))
  if __name__ == '__main__':
      with Pool(5) as p:
          p.map(launcher, users)
  </code></pre>
  
  <p>I got:</p>
  
  <pre><code>TypeError: launcher() missing 1 required positional argument: 'usr_password'
  </code></pre>