basic flask API for web programming review