[bugfix] api.APIError() called without enough args
[bugfix] api.APIError() called without enough args

Fixed also typos in docstrings.

Change-Id: Iba9bce7bef59a6400fcac028cd6078fa4846609e

wikimedia/pywikibot-core,wikimedia/pywikibot-core