Restore compatibility with older python-keyring

EPEL provides python-keyring version 0.7 which requires old usage.