Hey,
Your error seems to be related to your implementation. Having the error "IOError: Errno 2 No such file or directory" points that you're trying to write or read a file that doesn't exist. Or at least, is not where you're indicating. In this case, the error thrown is because the file "**/output" is not where you expect.
Most likely, the problem is that you're using a relative file path to open the file, but the current working directory isn't set to what you think it is.
It's a common misconception that relative paths are relative to the location of the python script, but this is untrue.
Relative file paths are always relative to the current working directory, and the current working directory doesn't have to be the location of your python script.
Please take a look at the following blogs [1, 2, 3] where users have found different approaches to solve this.
[2] -
https://help.pythonanywhere.com/pages/NoSuchFileOrDirectory/