some refactoring to fit phoenix path structure
satisfying pip8.  Fixed all but H302.