In Windows, I am aware that powershell has some provision to delete files/folders forcefully when it is in use. But in python, attempting to remove a file that is in use cau