Make dictionary function behave like class method
<p>I have a dictionary of methods:</p>

<pre><code>def name(self):
   print self.name

def age(self):
   print self.age

display = {
   'name': name,
   'age': age
}
</code></pre>

<p>And I have a class <code>Person</code> where I want <code>display['name']()</code> and <code>display['age']()</code> to work as methods:</p>

<pre><code>class Person:
   def __init__(self):
      self.name = 'Bob'
      self.age = 22
      self.showName = display['name']
      self.showAge = display['age']

person = Person()
</code></pre>

<p>The problem is that when I call <code>person.showName()</code> I get the error</p>

<blockquote>
  <p>TypeError: showName() takes exactly 1 argument (0 given)</p>
</blockquote>

<p>How can I make the function <code>showName</code> act like a method, and implicitly pass <code>self</code> as the first argument?</p>
