python: key import via HKP example
python: key import via HKP example

* Fixed the logic used to search for any given pattern.
* Added a sensible method of checking whether a pattern is a key ID or
  fingerprint.

Tested-by: Ben McGinnes <73675debcd8a436be48ec22211dcf44fe0df0a64@adversary.org>
Signed-off-by: Ben McGinnes <73675debcd8a436be48ec22211dcf44fe0df0a64@adversary.org>

gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme,gpg/gpgme