title: How to get attributes of parent class object only
body: <p>I have 2 classes:</p>
  
  <pre><code>class Parent(object):
      def __init__(self, id, name):
          self.id = id
          self.name = name
          self.__parent_vars = ['id', 'name']  # make a copy
  
      def print_values(self):
          res = {}
          for el in self.__parent_vars:
              res[el] = vars(self)[el]
          return res
  
  
  class Child(Parent):
      def __init__(self, id, name, last_name, age):
          Parent.__init__(self, id, name)
          self.last_name = last_name
          self.age = age
  </code></pre>
  
  <p>What I want to do - is to get from <code>Child</code> parameters of <code>Parent</code> class. I made it using additional variable and it works, but I need more elegant solution without additional variable. I need it for pickle class. If I create additional variable it breaks my Schemas in a big project.</p>
  
  <p>I try to find something like this:</p>
  
  <pre><code>c = Child(12,"Foo","whatever",34)
  vars(c.super())
  </code></pre>
  
  <p>with expected output:</p>
  
  <pre><code>{'id': 12, 'name': 'Foo'}
  </code></pre>
  
  <hr>
  
  <p>I found this question: <a href="https://stackoverflow.com/q/43633129/4960953">Get attributibutes in only base class (Python)</a> but it has significant difference of mine, so I can't use that solution.</p>