Try re-initializing Ansible after Python upgrade