python 3.3.x fixes