title: Exclude object's field from pickling in python
body: <p>I would like to avoid pickling of certain fields in an instance of a class.
  Currently, before pickling I just set those fields to None, but I wonder whether there's more elegant solution?</p>