Call app.run() only if depot is executed directly via shell, remove unnecassery 'print's