[python3] Fix remaining portability issues (remove ipdb entry)