dev-python/
ansible-compat

Contains functions that facilitate working with various versions of Ansible

https://pypi.org/project/ansible-compat/