revert platform fix for PY-6095, apply Python specifix fix instead
(cherry picked from commit 0dfae8b)

[r=peter,zolotov]