Python datetime.strptime().timetuple() - 'str' object is not callable
<p>I am stuck with this problem. Using the first method works fine but if I put it in a function, an error occurs:</p>

<pre><code>from datetime import datetime, time
tt = datetime.strptime('09:01:24', '%H:%M:%S').timetuple()
print time(tm[3], tm[4], tm[5])
//display 09:01:24
</code></pre>

<p>But placing the statement above in a function shows an error: 'str' object is not callable</p>

<pre><code>from datetime import datetime, time
def strtime_2_time(time):
    tm = datetime.strptime(time, '%H:%M:%S').timetuple()
    return time(tm[3], tm[4], tm[5])
print strtime_2_time('09:01:24')
</code></pre>

<p>what am I missing here guys?</p>
