Currently the following error occurs. I believe the problem is due to this code been written for python 2.X and not working in my current version of python 3.8.3