Moved dict methods out to a mp_method_t.