title: High windows defender CPU usage while running python script
body: <p>I am working on a python script that pulls data from an Access database via ODBC, and pulls it into a sqllite database managed by django.</p>
  
  <p>The script takes a fair while to run, and so I was investigating where the bottle necks are and noticed in Task Manager that when running the script python only has a relatively small CPU usage &lt;5% (6 core 12 thread system) but "Antimalware Service Executable" and Windows explorer" jump from virtually nothing to 16% and 10% respectively.</p>
  
  <p>I attempted to add exclusions to windows defender to the python directory, the source code directory, and the location of the Access DB file but this do not make any noticeable effect.</p>
  
  <p>As a small amount of background, the script runs thousands of queries so IO will being accessed quite frequently.</p>
  
  <p>Is there any troubleshooting I can do to diagnose why this is happening and/or if it affecting performance.</p>