According with you, why this for doesn't work:

for arg in pywikibot.handleArgs():
    genFactory.handleArg(arg)

in my python script?

Error message is: "name 'genFactory' is not defined"

I've:

import wikipedia as pywikibot

surely it's a small detail that escapes me... but I cannot find it. :(

Tnx,
Marco