pickling error might be due to name conflict of unpickled instance (sda) and SdA module.  At least, the pickle error suggests as much.