example of python rest with flask