'Utility function that runs a command and returns status code'

def _run_get_return(self, arguments):

    if self.debug_run:
        self.log.debug('running:    "%s"', '    '.join(arguments))
    result = None
    try:
        result = subprocess.call(arguments)
        if self.debug_run:
            logging.debug('previous    command    result:    %s', result)
    except OSError:
        result = (-1)
        self.log.error('caught    OSError,    returning    %s', result)
    return result
