Use Python for test
Test graceful exit on unwritable file