Use Python 3 except statement