Fixed import errors preventing the execution of gpg.