Added __getstate__ to parallel model to prevent pickling problems.