RHEL 7.7 packages python 3.6. That's why it works.
If the host is running python 3.8+, then you have to work around this issue by pointing to a different version of python that's available on the host.
RHEL 7.7 packages python 3.6. That's why it works.
If the host is running python 3.8+, then you have to work around this issue by pointing to a different version of python that's available on the host.