refactoring for local cert generation

* adding ttf fonts
* pep8 cleanup