Formatting according to pep8 and add encoding declaration at the top of each file.