Python 3 compatibility : use compat.basestring !