Use OSError instead of FileExistsError to be python 3.2 compliant.