StringIO, u'' fixes
isMappingType() for both python versions
Do not convert 1 filter() to list