Code Hygiene: remove deprecated code

pep8 reports two deprecated python constructs:

    W601 .has_key() is deprecated, use 'in'
    W603 '<>' is deprecated, use '!='
Merge pull request #6 from hashar/cleanup-deprecations

Code Hygiene: remove deprecated code