Change string value by function
<p>Maybe a silly question but I noticed that my code has many statements like this:</p>

<pre><code>var = "some_string"
var = some_func(var)
var = another_func(var)
print var # outputs "modified_string"
</code></pre>

<p>It's really annoying me, it's just look awful (in the opposite of whole python)
How to avoid using that and start using it in way like this:</p>

<pre><code>var = "some_string"
modify(var, some_func)
modify(var, another_func)
print var # outputs "modified_string"
</code></pre>

<p>Thank you in advance</p>
