Try Except Python If String