def get(self): stage_key = self.request.get('stage') stage_details=StageClasification.get_by_id(stage_key) self.response.headers['Content-Type'] = 'application/json' self.response.out.write(json.dumps(json.loads(stage_details.data)))