Python Function Modify Input Definition