pypuppetdb/utils: Wrapping the actual comparison in a try-catch block
pypuppetdb/utils: Wrapping the actual comparison in a try-catch block

Because cmp() was removed in Python 3.0, as per https://docs.python.org/3.0/whatsnew/3.0.html#ordering-comparisons,
have to implement a manual code equivalent of the cmp() functions of
Python 2.x. This SHOULD fixing TravisCI tests based on Python 3.3

puppet-community/pypuppetdb,voxpupuli/pypuppetdb