title: Python - AttributeError: type object 'MyClass' has no attribute 'name'
body: <p>I have 3 python files .</p>
  
  <p><strong>MyModule.py</strong></p>
  
  <pre><code>class MyClass:
      def __init__(self, name):
          self.name = name
  
      @classmethod
      def hello(self):
          print('Hello ' + self.name)
  </code></pre>
  
  <p><strong>Loader.py</strong></p>
  
  <pre><code>import pickle
  from MyModule import *
  
  me = pickle.load(file('my_pkl.pickle','rb'))
  me.hello()
  </code></pre>
  
  <p><strong>Dumper.py</strong></p>
  
  <pre><code>import pickle
  from MyModule import *
  
  me = MyClass('Anil')
  pickle.dump(me, open('my_pkl.pickle','wb'))
  </code></pre>
  
  <p>When I exceute Loader.py I get below error:</p>
  
  <pre><code>AttributeError: type object 'MyClass' has no attribute 'name'
  </code></pre>
  
  <p>How can I access name instance vaiable?</p>