[PATCH v3 8/9] test/py: allow multi-digit index in in_tree()