def exists(device=''):
    if os.path.exists(device):
        dev = os.stat(device).st_mode

        if stat.S_ISBLK(dev):
            return True

    return False
parse section to formal format
dataset/ETHPy150Open saltstack/salt/salt/modules/parted.py/exists--crossover with--dataset/ETHPy150Open TylerTemp/docpie/docpie/parser.py/OptionParser.parse_content