Update rest.py