use safe methods from the yaml library (#2673)
use safe methods from the yaml library (#2673)

Fixes: SE-2117
hughsaunders/rpc-openstack,mancdaz/rpc-openstack,hughsaunders/rpc-openstack,jacobwagner/rpc-openstack,prometheanfire/rpc-openstack,BjoernT/rpc-openstack,jacobwagner/rpc-openstack,prometheanfire/rpc-openstack,cloudnull/rpc-openstack,BjoernT/rpc-openstack,robb-romans/rpc-openstack,rcbops/rpc-openstack,rcbops/rpc-openstack,cloudnull/rpc-openstack,robb-romans/rpc-openstack,mancdaz/rpc-openstack