[cleanup] Code cleanup
[cleanup] Code cleanup

- keep lines below 80 chars
- remove preleading "u" from strings
- use single quotes
- use str.format() instead of modula operator when the line is changed

detached from https://gerrit.wikimedia.org/r/#/c/pywikibot/core/+/444437/

Change-Id: I846f4cea649e9ce22560c30ad9919bf18bda6507

wikimedia/pywikibot-core,wikimedia/pywikibot-core,PersianWikipedia/pywikibot-core