Added -c option to sendcommand.py