adding tests for formatting responses. pep8 mods. fixed indexing of dictionary in resources.py
Merge pull request #6 from aelkikhia/master

format testing