Minor cosmetic fixes

This fixes some minor misspellings in code and doc.

Never mind the other modified lines, my editor automatically removes useless whitespace at line end (as [PEP8](http://legacy.python.org/dev/peps/pep-0008/) recommends).

Et merci pour ton outil, compatriote ;)