First python3 fixes.