Add parameter xml declaration in parser and fix pep8 errors