python import seems to behave differently in mercurial_keyring.py file

A bizarre import error is preventing me from installing a mercurial extension. I'm trying to get the mercurial_keyring extension running so that I don't have to type in my user name and password e...