PyAnsible makes it possible to easily interact with Ansible from Python code.