Explain what is the common way for the Flask script to work?