added rest_api_functions.py file