downgrade pyyaml to a test dependency