Python Function Modify Parameter