scripts: Converted to flask