title: Accessing member functions of multiple instances of a python class
body: <p>I am looking for a code shortcut to access member functions of multiple instances of python class to avoid code redundancy. For instance,</p>
  
  <pre><code>class my_class:
      def __init__(self):
          ...
  
      def set_parameter(self):
          #sets some parameter
  </code></pre>
  
  <p>Now I create multiple instances of <code>my_class</code></p>
  
  <pre><code>instance1 = my_class()
  instance2 = my_class()
  </code></pre>
  
  <p>I would like to as if it is possible to access use <code>set_parameter</code> member function for both of the above instances in the same line of code? </p>