title: python pycrypto: module' object has no attribute 'importKey'
body: <p>I'm currently working with pycrypto and I want to import public key,but it can not work and raise some error: <strong>'module' object has no attribute 'importKey''</strong><br />
  I also use pycrypto in my other script,it works well,so I can not understand why this can not work.<br />
  my code that can't work is as following:</p>
  
  <pre><code>    from Crypto.PublicKey import RSA
      .............
      .............
      def task_name(task):
          username = task['user']
          taskintid = task['taskintid']
          data = '%s,%s' % (str(username), str(taskintid))
          user_id = task.get('op_user_id', '')
          db = get_db()
  
          ssh_key = db.ssh_key.find_one({'user_id': user_id})
          if ssh_key:
              try:
                  public_key = RSA.importKey(ssh_key.get('ssh_key', ''))
                  data = public_key.encrypt(data, 32)[0].encode('hex')
              except Exception, e:
                  print e
  
      return "task-%s-%s" % (data, task['repeat_num'])
  </code></pre>
  
  <p>also, my python version is <strong>2.6.5</strong><br />
  =======================================<br />
  sorry,I forgot it, the pycrypto version is <strong>2.0.1</strong><br />
  because I have installed many packages,so I can not upgrage my pycrypto version</p>