fix metadata-injector
solve some pep8 issues
change metadata community identifier
solve some pep8 problems
some fixes
small cleanup
Merge pull request #718 from LipuFei/fix_metadata_injector

Fix metadata injector