handle FileNotFound error for both Python 3.3 and Python < 3.3