python pwb.py login fails to generate user-config.py when it has not already been created as the source below indicates it should.
https://www.mediawiki.org/wiki/Manual:Pywikibot/Basic_use
Instead it gives the following:
$ python pwb.py login NOTE: 'user-config.py' was not found! Please follow the prompts to create it: Unknown arguments: login
