Adding option of not deleting the old cat

(update from compat),
- pep8 changes
- replace pywikibot.output("warning") with pywikibot.warning("")
- synchronize with compat

Change-Id: Ia555c20e6360c0c4bcb603af6f76b39fc08d3e88