PY3: fix has_key and use six.moves.configparser

Yet another small change for py3k support.
It was still in Python 3.1, but a quick test told me that it's still working in Python 3.4.