For this example, let's develop a simple service that processes some data and produces a response. Then, we'll convert it to a distributed service.
First, let's create a simple service. For this example, let's create one that returns us an array of strings representing the Happy Birthday song with someone's name embedded in it.
class Service(object): def happy_birthday(self, name): results =  for i in range(4): if i == 2: results.append("Happy Birthday Dear %s!" % name) else: results.append("Happy Birthday to you!") return results
Our service isn't too elaborate. Instead of printing the data directly to screen, it collects it together and returns it to the caller. This ...