Error while loading data into python

Hi, I recently migrated from python 3.6 to 3.8 and my python script nodes start to fail with the error message:

ERROR Python Script 12:168:0:23 Execute failed: ‘tolerances’

when I open script editor it shows “Error while loading data into python” message and fail to execute any line of script with ‘tolerances’ message within execution console.

Please help! It all works before.