def fintlist(alist):
    """List of integers from string or list of strings/integers"""
    outlist = []
    if isinstance(alist, str):
        alist = alist.strip().strip('[] ').split(',')
    for it in alist:
        if it:
            outlist.append(int(float(it)))
    return outlist
