compatiable fix for py2.

FileNotFoundError is py3 only.