changes in read function of wos.py to handle IOError.