py3 patches