Python Use Function Output As Input Process