merge of#2796 post python3 errors