try/except needs 2 lines in python