The Yaml module is missing on some systems and on many clang buildbots. But the test for run-clang-tidy.py doesn't fail due to not statement masking the python runtime error.
This patch conditionally imports and enables the yaml module only if it's present in system. If not, then -export-fixes is disabled, the same as for clang-tidy-diff.py.