```
import os

for dirpaths, dirnames, filenames in os.walk(mydir):
    print dirpaths

```

gives me *all* (sub)directories in `mydir`. How do I get only the directories at the very bottom of the tree?