http://bugs.winehq.org/show_bug.cgi?id=30515
--- Comment #10 from Murph MattFinn@gmail.com 2012-04-25 08:21:02 CDT --- (I typod that script, it should be a = os.open, not a = s.open)
It seems that the crash occurs in/around python's posixmodule.c in the "_PyVerify_fd(int fd)" function. Which is clearly using msvcrt internal stuff.