Create service.py

service.py is the service offered by MyREST through which client interacts with server