Python Use Function Output As Input Process Output Model