Fix keyring for Python 3