Python REST API server using Flask