eol-style native

https://mediawiki.org/wiki/Special:Code/pywikipedia/11693
strip trailing whitespace, PEP8 changes from trunk

https://mediawiki.org/wiki/Special:Code/pywikipedia/11694