Avoid platform-specific temporary file operations
Created by: JelleAalbers
This PR makes straxen around some temporary file/directory practices that are not supported in python on windows, and seem pretty risky in general. Specifically, we now avoid deleting the current working directory of the process (which we did in the tests), or trying to open an already opened temporary file again (which we did to feed the neural net weights to keras).