Fix metadata injector

* fix metadata injector
* fix some pep8 problems
* change metadata community identifier
I will change them to new style classes later. I first need to fix the metadata stuff and the GUI problems on Mac.