Return correct object type
Return correct object type

In python3, type is more strict, compare str to int will report error.
The patch fix this.

Partially-Implements: blueprint magnum-python3

Change-Id: I66583113dd93425c2157dfa60a5325b1afd03f29

ArchiFleKs/magnum,openstack/magnum,jay-lau/magnum,openstack/magnum,ArchiFleKs/magnum