Autopartkit uses libparted and ped_device_get_next() to locate available disks and partitions. If this is accessing removable devices, I suspect the problem is in libparted, and not in autopartkit. I'm not sure how libparted detect partitions.