fix OSError is unsubscrible exception under win32
Merge pull request #2 from phus/master

thanks phus: fix OSError is unsubscrible exception under win32