Add raises IOError to docstrings