pyreadpartitions instead of parted.
Device extraction corrected thanks to unit tests.