Fix bug: #400

Improve the import metaclass tool #400