Py3 has_key Fix

change options.has_key
to
'key' in options