Move file template to constants
FileNotFoundError is python 3 only!

Use OSError in place
Add test integration