[BUGFIX] code improvements and bugfixes:

- remove obsolete variables, code stuff
  and "nosubcat" option which was not implemented
- include revision: 0b888f24b532d54ee93574632b34c162fbe77ba0
  made by Merlijn van Deen:
  mysite was not defined. pywikibot.handleArgs is guaranteed to
  return a list (as opposed to a generator) after parsing all
  global arguments (such as -lang and -family). This means it's
  safe to call pywikibot.getSite immediately after handleArgs,
  but before handling local arguments.
- synchronize with compat
- pep8 changes

Change-Id: Ie3b2da1e5a0ff7ee8f82bb10891ce4bb7075a970
Merge "[BUGFIX] code improvements and bugfixes:"