Mapping Operator To Function In Python