PY3: fix has_key and use six.moves.configparser

Yet another small change for py3k support.
I thought it won't work in Python3 because SafeConfigParser was renamed to ConfigParser, but it turns out SafeConfigParser is still there (it is an undocumented ConfigParser alias).