Refactoring: introduce cli package

2 jobs for ML_clustering in 4 minutes and 51 seconds (queued for 10 minutes and 24 seconds)