python: windows compat
python: function needed to make both ucs2 and ucs4 python builds work