def minorbase(basepile):
    c = Counter(basepile)
    if len(list(c.elements())) > 1:
        return c.most_common(2)[-1]
    else:
        return c.most_common()[0]
returns tuple: (minor base, count)
dataset/ETHPy150Open adamewing/bamsurgeon/bamsurgeon/common.py/minorbase