python 2.6 compatibility

fixes https://github.com/isislovecruft/python-gnupg/issues/39