sample code for python client - server model and DS based worker