Flask app, frames saved in a file, nxing config, clear script