Create rest.py