Python Define Function With List Input Using Map