title: python importing mysql.connector can crash (seg fault) if done in particular order
body: <p>I am using python 3.7.9 and mysql-connector-python 8.0.22 on debian using virtualenv and all modules installed with pip3.
  I encountered a strange issue where importing this together with other modules, if I do this in certain order, it will crash with &quot;Segmentation fault&quot;.</p>
  <p>Crashed:</p>
  <pre><code>import requests
  import mysql.connector
  
  import PIL
  from PIL import Image
  </code></pre>
  <p>Ok:</p>
  <pre><code>import requests
  
  import PIL
  from PIL import Image
  
  import mysql.connector
  </code></pre>
  <p>Simply reordering like above will make this problem disappeared. I am not sure it has to do with some libs used by all modules involved and the orderings that will make it work seems to change if i import other modules... so far, I can't find any patterns.</p>
  <p>I am new at debugging python at dynamic library loading level, if you experience this same problem, please share if you know how to fix this.</p>