Pep8 and pylint fixes to code

Extensive changes to jenkinsapi and tests to make it pep8- and  pylint-compliant. Passes all tests at travis_ci.org, including newly-added pep8 and pylint tests.