even more: use basestring instead of str