Python Function Modifying Arguments