It is possible a Windows problem, as running the file from terminal under macOS and Linux does not have any problem.