Python Function Modify Input Tools