[PATCH 0/5] Preparation patches for python 3