Bug fix for Python 3.x compatibility (missed compat.basestring import)
This should hopefully restore Python 3.x compatibility... :-)