api/v3 Fixing indentation and white-space errors reported in build

Travis CI Build on this pull request filed due to trailing white-space
and under-indentation of newly modified code.

Details are https://travis-ci.org/puppet-community/pypuppetdb/builds/38442716