python cmdline tool