python3: Fix gpgme 'Invalid argument' issue in unittests.
python3: Remove usage of .iterkeys()