PEP8, file formats and line lengths fixes