Auto recoverable file read/write library for Python