Move pickling to wrapper class entirely

- Remove pickling/unpickling code from internal c and py files