Revert "no setattr func"

This reverts commit d6c21539219b8e72f46844d2cb4ada533e0a90c7.
raise notimplemented on setattr