Python Calling Function From Mapping Definition