Python Use Function Output As Input Mapper