bugfix for Windows: NamedTemporaryFile.delete can only be set at creation time on Windows due to a different mechanism used for creating and then deleting such files (see tempfile.py in the standard library for the details)