Made autopkgnotify.py more PEP8 compatible and replaced use of deprecated .has_key() method with 'in'.