If you are running the python file from the command prompt. When you open the command prompt right click and select run as administrator.
If you are using any other IDE(eg spyder pycharm etc..) also try running this as administrator.
Also make sure the files used by the python script are not being accessed by another application.
Hope this helps