fixed typos found by RETF rules in PY files

rules are avaialble at https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

used script is available at https://gist.github.com/berendt/5ae38f2f1d5bd6b883d3