title: pymongo fails with error 'sys' is not defined
body: <p>I have a Django app that queries mongodb.</p>
  <p><code>requirements.txt</code>:</p>
  <pre><code># other dependencies
  pymongo==4.1.0
  </code></pre>
  <p>View:</p>
  <pre><code>client = pymongo.MongoClient(&quot;mongodb+srv://*****@****.mongodb.net/test_db?retryWrites=true&amp;w=majority&quot;)
  </code></pre>
  <p>When this line is executed, the Django server throws the following error:</p>
  <pre><code>venv/lib/python3.9/site-packages/pymongo/uri_parser.py, line 467, in parse_uri 
  Exception: name 'sys' is not defined
  </code></pre>
  <p>How do I fix this error? I'm on Python3.9 and latest Django.</p>