Fix metadata injector

* fix metadata injector
* fix some pep8 problems
* change metadata community identifier