IOError is not the same as OSError in Python 3.2