Fix for #698 : Remove UTF8 Bom Marker when reading file

https://github.com/getpelican/pelican/issues/698

I also made a little pep8 cleaning