def clone_name(s, ca=False):
    if not ca:
        return s[:-1]

    if s[0] == '1':
        return s[2:]
    return s.rstrip('ab')
>>> clone_name("120038881639")
dataset/ETHPy150Open tanghaibao/jcvi/assembly/coverage.py/clone_name