title: function error for python-rsa module
body: <p>i installed <a href="https://stuvel.eu/rsa" rel="nofollow noreferrer">Python-RSA</a> for using rsa algorithm in my python project , but when i want to use it i have this error :</p>
  
  <p><a href="https://i.stack.imgur.com/ZmCUr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZmCUr.png" alt="run error"></a></p>
  
  <pre><code>import rsa
  (public_key, private_key) = rsa.newkeys(1024, accurate=True, poolsize=8)
  </code></pre>
  
  <p>Above code is from <a href="https://stuvel.eu/files/python-rsa-doc/usage.html" rel="nofollow noreferrer">official Doc</a></p>
  
  <p>i check module files for <strong>newkeys()</strong> function and this function exists</p>
  
  <p><a href="https://i.stack.imgur.com/07tNx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/07tNx.png" alt="module&#39;s files"></a></p>
  
  <pre><code>def newkeys(nbits, accurate=True, poolsize=1):
      if nbits &lt; 16:
          raise ValueError('Key too small')
      if poolsize &lt; 1:
          raise ValueError('Pool size (%i) should be &gt;= 1' % poolsize)
      if poolsize &gt; 1:
          from rsa import parallel
          import functools
          getprime_func = functools.partial(parallel.getprime, poolsize=poolsize)
      else: getprime_func = rsa.prime.getprime
      (p, q, e, d) = gen_keys(nbits, getprime_func)
      n = p * q
      return (PublicKey(n, e), PrivateKey(n, e, d, p, q))
  __all__ = ['PublicKey', 'PrivateKey', 'newkeys']
  if __name__ == '__main__':
      import doctest
      try:
          for count in range(100):
              (failures, tests) = doctest.testmod()
              if failures:
                  break
              if (count and count % 10 == 0) or count == 1:
                  print('%i times' % count)
      except KeyboardInterrupt:
          print('Aborted')
      else:
          print('Doctests done')
  </code></pre>
  
  <p>what's wrong here ?</p>