Moved setattr and removed codec interceptor