Fix other python3 syntax errors