py3k compatibile try/catch