Replaced FileNotFoundError with IO Error

Fixes support for python 3.2