Fix issue causing Resource to be listed as a parent (from Django models). Issue is a side effect of using six to provide python 2.7 and 3 compatibility.
Fixed check that allows a Resource object to be passed in place of a resource name.