Parse the state transition graph for a set of dialog-definition tables to find an fix deadends

def main(dialogpath=None):
    """ Parse the state transition graph for a set of dialog-definition tables to find an fix deadends """
    if dialogpath is None:
        args = parse_args()
        dialogpath = os.path.abspath(os.path.expanduser(args.dialogpath))
    else:
        dialogpath = os.path.abspath(os.path.expanduser(args.dialogpath))
    return clean_csvs(dialogpath=dialogpath)