CFY-125 added support for get_resource call in agent plugins; added flake8 to .travis.yml and fixed flake8 errors