title: Segment Analytics syntax error is causing my pytest suite to fail
body: <p>I'm setting up a suite of unit tests via Pytest for an application, but when I run <code>python -m pytest</code> I get the error shown below. I don't believe it's from my application - instead, it seems to be coming from segment analytics; a service we use to track user analytics.</p>
  <p>Am I incorrect in thinking this, and in either case, is there anything my team can do to fix this?</p>
  <pre><code> platform win32 -- Python 3.9.0, pytest-6.2.2, py-1.10.0, pluggy-0.13.1
      rootdir: C:\Users\erich\OneDrive\Desktop\Misc\sanctuary-fastapi
      plugins: anyio-3.5.0, cov-2.11.1
      collected 0 items / 1 error
      
      ==================================================================================== ERRORS ====================================================================================
      ____________________________________________________________________ ERROR collecting app/test_data_pull.py ____________________________________________________________________ 
      C:\Python39\lib\site-packages\_pytest\python.py:578: in _importtestmodule
          mod = import_path(self.fspath, mode=importmode)
      C:\Python39\lib\site-packages\_pytest\pathlib.py:531: in import_path
          importlib.import_module(module_name)
      C:\Python39\lib\importlib\__init__.py:127: in import_module
          return _bootstrap._gcd_import(name[level:], package, level)
      &lt;frozen importlib._bootstrap&gt;:1030: in _gcd_import
          ???
      &lt;frozen importlib._bootstrap&gt;:1007: in _find_and_load
          ???
      &lt;frozen importlib._bootstrap&gt;:986: in _find_and_load_unlocked
          ???
      &lt;frozen importlib._bootstrap&gt;:680: in _load_unlocked
          ???
      C:\Python39\lib\site-packages\_pytest\assertion\rewrite.py:170: in exec_module
          exec(co, module.__dict__)
      app\test_data_pull.py:2: in &lt;module&gt;
          import main
      app\main.py:7: in &lt;module&gt;
          import analytics
      E     File &quot;C:\Python39\lib\site-packages\analytics\__init__.py&quot;, line 23
      E       except Exception, e:
      E                       ^
      E   SyntaxError: invalid syntax
      =========================================================================== short test summary info ============================================================================ 
      ERROR app/test_data_pull.py
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 
  </code></pre>