Feature/pep8

will update on pypi as well once this gets merged. there is also a bug in the Resource code. this PR fixes that as well.