solved python3 incompatible syntax issues that popped up during setup install of python3 branch

..mostly exception syntax