def check_commands(self, cmd_list):
<EOL>if isinstance(cmd_list, basestring):<EOL><INDENT>cmd_list = [cmd_list]<EOL><DEDENT>for cmd in cmd_list:<EOL><INDENT>if self.command_run("<STR_LIT>".format(cmd)) == <NUM_LIT:0>:<EOL><INDENT>return cmd<EOL><DEDENT><DEDENT>
Checks to see if commands in list are available using ``which``.

returns the first available command.

If a string is passed then that command will be checked for.