Fixed save_as for windows pipeline.
In the process, the save_as function hat to be changed, so that it closes the file object before copying it to some location. This is not ideal but a work around after many trials to fix it properly. An issue #19 for this was opened.