Bug: In AllpagesPageGenerator, the code determines namespace from the start parameter, but then proceeds in alphabetical order from the start value's namespace name.
EG: -start:Template:100 begins processing at Template:Template documentation, not Template:!
Proposed Fix:
Current: if namespace==None: namespace = wikipedia.Page(wikipedia.getSite(), start).namespace()
Add: m = re.search('.+:(.)*',start, flags = 0) if m: start = m.group(1)
-Mak