bugfix, code improvements

- fix identation error comming with
  https://mediawiki.org/wiki/Special:Code/pywikipedia/2337
- use set for better performance instead of searching in a list
  (maybe the the set should be returned)
- bugfix for verbose variable
- synchronize parts with compat

Change-Id: I88702e01270735890c903864f027e402508cd162