Python Function Modify Input Mapper