py: Fix bug in type_store_attr, trying to store to ROM.