Some repeititive practice on Flask manage script