Using Ansible as a Python module