try `pip.backwardcompat.StringIO`
it already covers this conditional.