Python 3 exception syntax