revert 21fcc50ce0cf268978aebd255cbc1bb5a4719270 causing error in python3