Fix read/write return mp_obj_t