minor fixes

created rest.py class