[CLEAN] Refactor the recursive search, use more list comps.

Document PyYAML as a dependency.