def __cleanup_stdout(stdout):
    """Removes empty elements from the stdout/stderr list returned by run
       param stdout: string output of subprocess stdout
       returns: list of lines from stdout
    """
    return list(filter(None, stdout.split('\n')))