Revert "Revert "six.b() in lambda""

This reverts commit 286540e5e6685700bf8878db262e132eea4cf1a6.
BytesIO as StringIO