Revert "Revert "Add pyyaml dependency""

This reverts commit 8fb5189513923d0670c188404a942df2537760f0.