<!--- Verify first that your issue is not already reported on GitHub -->
<!--- Also test if the latest release and devel branch are affected too -->
<!--- Complete *all* sections as described, this form is processed automatically -->

##### SUMMARY
<!--- Explain the problem briefly below -->
This issue is identical to #70238, except that instead of the managed node being an ESXi host running Python 3.5, the managed host is a RedHat Enterprise Linux 3 host running Python 2.7

##### ISSUE TYPE
- Bug Report

##### COMPONENT NAME
<!--- Write the short name of the module, plugin, task or feature below, use your best guess if unsure -->
- setup
- shell (but only when `become` is used)

##### ANSIBLE VERSION
<!--- Paste verbatim output from "ansible --version" between quotes -->
```paste below
ansible 2.10.1rc3
  config file = /Users/alex/Projects/work/ansible/ansible.cfg
  configured module search path = ['/Users/alex/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.7/site-packages/ansible
  executable location = /usr/local/bin/ansible
  python version = 3.7.7 (default, Mar 10 2020, 15:43:03) [Clang 11.0.0 (clang-1100.0.33.17)]
```
Also confirmed issue occurs with ansible 2.9.13

##### CONFIGURATION
<!--- Paste verbatim output from "ansible-config dump --only-changed" between quotes -->
```paste below
DEFAULT_BECOME_METHOD(/Users/alex/Projects/work/ansible/ansible.cfg) = su
DEFAULT_REMOTE_USER(/Users/alex/Projects/work/ansible/ansible.cfg) = alext
```

##### OS / ENVIRONMENT
<!--- Provide all relevant information below, e.g. target OS versions, network device firmware, etc. -->
```
[alext@host ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux AS release 3 (Taroon Update 9)
[alext@host ~]$ uname -r
2.4.21-37.ELsmp
[alext@host ~]$ bin/python -V
Python 2.7.17
```

##### STEPS TO REPRODUCE
<!--- Describe exactly how to reproduce the problem, using a minimal test-case -->

<!--- Paste example playbooks or commands between quotes below -->
```sh
ansible -i inventory/test-host.yml -m shell -a 'whoami' --become host
```

<!--- HINT: You can paste gist.github.com links for larger files -->

##### EXPECTED RESULTS
<!--- Describe what you expected to happen when running the steps above -->
```sh
host | CHANGED | rc=0 >>
root
```

##### ACTUAL RESULTS
<!--- Describe what actually happened. If possible run with extra verbosity (-vvvv) -->

<!--- Paste verbatim command output between quotes -->
```paste below
host | FAILED | rc=38 >>
[Errno 38] Function not implemented
```
and with `-vvv`, the following traceback:
```
The full traceback is:
WARNING: The below traceback may *not* be related to the actual failure.
  File "/tmp/ansible_ansible.legacy.command_payload_Bgr88e/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/basic.py", line 2720, in run_command
    selector = selectors.DefaultSelector()
  File "/tmp/ansible_ansible.legacy.command_payload_Bgr88e/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/compat/_selectors2.py", line 423, in __init__
    self._epoll = select.epoll()
host | FAILED | rc=38 >>
[Errno 38] Function not implemented
```
"""**Deprecated**: Use ansible.module_utils.common.sys_info.get_platform_subclass instead"""
    platform_cls = get_platform_subclass(cls)
    return super(cls, platform_cls).__new__(platform_cls)
def get_all_subclasses(cls):
    """**Deprecated**: Use ansible.module_utils.common._utils.get_all_subclasses instead"""
    return list(_get_all_subclasses(cls))
def _remove_values_conditions(value, no_log_strings, deferred_removals):
    """
    Helper function for :meth:`remove_values`.
    :arg value: The value to check for strings that need to be stripped
    :arg no_log_strings: set of strings which must be stripped out of any values
    :arg deferred_removals: List which holds information about nested
        containers that have to be iterated for removals.  It is passed into
        this function so that more entries can be added to it if value is
        a container type.  The format of each entry is a 2-tuple where the first
        element is the ``value`` parameter and the second value is a new
        container to copy the elements of ``value`` into once iterated.
    :returns: if ``value`` is a scalar, returns ``value`` with two exceptions:
        1. :class:`~datetime.datetime` objects which are changed into a string representation.
        2. objects which are in no_log_strings are replaced with a placeholder
            so that no sensitive data is leaked.
        If ``value`` is a container type, returns a new empty container.
    ``deferred_removals`` is added to as a side-effect of this function.
    .. warning:: It is up to the caller to make sure the order in which value
        is passed in is correct.  For instance, higher level containers need