fix get_send_kwargs call and add test case
remove dependency on PyYaml