Updates a box with the provided attributes.
		Args:
			pipeline_key	reqiured identifier for the pipeline
			stage			StreakStage object
			kwargs			{name}
			return			(status code, stage dict)

def update_pipeline_stage(self, stage):
		'''Updates a box with the provided attributes.
		Args:
			pipeline_key	reqiured identifier for the pipeline
			stage			StreakStage object
			kwargs			{name}
			return			(status code, stage dict)
		'''
		#req sanity check
		payload = None
		if  type(stage) is not StreakStage:
			return requests.codes.bad_request, None

		payload = stage.to_dict(rw = True)
	
		#print(new_pl.attributes)
		#print(new_pl.to_dict())
		#raw_input()
		try:
			uri = '/'.join([self.api_uri,
							self.pipelines_suffix,
							stage.attributes['pipelineKey'],
							self.stages_suffix,
							stage.attributes['key']
							])
		except KeyError:
			return requests.codes.bad_request, None
	
		code, data = self._req('post', uri , json.dumps(payload))
		
		return code, data