Python Function Change Input Variable Definition