Fix for create app exception?

With some pep8.