title: Pickle Dump to save an object within the class
body: <p>Let's say I have a class like this:-</p>
  
  <pre><code>class MyClass:
    some object here
    some other object here
    def init(self, some parameters):
      do something 
    def some_other_method(self, param):
      something else
    def save(self, path):
      PICKLE DUMP THIS OBJECT
    def load(self, path):
      PICKLE LOAD OBJECT
  </code></pre>
  
  <p>I don't want to pickle load and dump like:</p>
  
  <pre><code>obj = MyClass(param)
  pickle.dump(obj, mypath)
  </code></pre>
  
  <p>But rather like this:</p>
  
  <pre><code>obj.save(mypath)
  </code></pre>
  
  <p>How can I do this within the class definition?</p>