uhm. in a finally I'd still have to check if unlink raises an exception because of the file not found. usually either you can write to a folder (and so, to delete) or it is in read-only, and in that case the exception is raised on the open(). 
As for the random part appended to the wtest, what assurance does it bring ?