Python Calling Function From Mapping Tools