title: Dictionary value as function to be called when key is accessed, without using "()"
body: <p>I have a dictionary that has values sometimes as strings, and sometimes as a functions. For the values that are functions is there a way to execute the function without explicitly typing <code>()</code> when the key is accessed?</p>
  
  <p>Example:</p>
  
  <pre><code>d = {1: "A", 2: "B", 3: fn_1}
  d[3]() # To run function
  </code></pre>
  
  <p>I want:</p>
  
  <pre><code>d = {1: "A", 2: "B", 3: magic(fn_1)}
  d[3] # To run function
  </code></pre>