stm: Implement mp_import_stat.

To follow up pull request #309.