add policy metadata endpoint and fix pep8
convert to unix line ending