Use logging in the options module
Replace the has_key function calls with in

The has_key() dictionary function is not available in Python 3.