Simplify import and try/except statements.