Changed the way I handle cmd from argparse and cleaned even more the code