Map And Filter Function In Python Definition