ENH: add support for keyring >= 1.1.

This seems to fix the issue with keyring >= 1.1. @ashishbhate, can you check that this works for you ?