'This method selects the w3afAgent client to use based on the remote OS and some other factors
like having a working python installation.'

def _select_client(self):

    python = self._exec('which    python')
    python = python.strip()
    if python.startswith('/'):
        client = os.path.join(ROOT_PATH, 'core', 'controllers', 'w3afAgent', 'client', 'w3afAgentClient.py')
        file_content = file(client).read()
        extension = 'py'
        interpreter = python
    else:
        file_content = ''
        extension = 'py'
        interpreter = '/usr/bin/python'
    return (interpreter, file_content, extension)
