Fix spelling errors in PyQGIS cookbook

Correct mispelled words. Also correct a few other minor typos.
Do not change between US or UK spelling variants, both of which are
used (sometimes in the same sentence).