[mod] refactor, put exporting functions in an utils.py
[enh] new command to import data in the representative format