python2 code get error when using python3.5 : <pre><code>def finalize_options(self):
    if self.cross_compile and os.environ.has_key('PYTHONXCPREFIX'):
        prefix = os.environ['PYTHONXCPREFIX']
        sysconfig.get_python_lib = get_python_lib
        sysconfig.PREFIX = prefix
        sysconfig.EXEC_PREFIX = prefix
        # reinitialize variables
        sysconfig._config_vars = None
        sysconfig.get_config_var("LDSHARED")

    _build.finalize_options(self)
</code></pre>

<p>the code above that will get the error when run on python3.5.
the error is :
crosscompile.py", line 16, in finalize_options
AttributeError: '_Environ' object has no attribute 'has_key'</p>

<p>does anyone have idea how to modify the code to workable in python3.5?</p>
