#!/usr/bin/env python3 import btrfs with btrfs.FileSystem('/var/lib/machines') as fs: for subvolume in fs.subvolumes():