An exception occurred: , [WinError 6] The handle is invalid when trying to run python code I ran the following code