subcommand use argparse
remove unused import
use path.join in tests
use path.join