Hello!
In gpg.constants, there is a subclass/attribute named "import". However, this is a forbidden keyword per python (because of the "import" statement):
>>> import keyword >>> keyword.iskeyword('import') True
leading to strange errors like this:
>>> import gpg >>> gpg.constants.import.NEW File "<stdin>", line 1 gpg.constants.import.NEW ^ SyntaxError: invalid syntax
perhaps change gpg.constants.import to gpg.constants.import_type?