add missing `import pytz`

try/except to allow `if pytz is None` later in code to work