VMware: Fix python 3 incompatibility (#54123)
VMware: Fix python 3 incompatibility (#54123)

Add Python2 and Python3 compatible `string.translate` for hostname customzation.

Fixes: #54118 
thaim/ansible,thaim/ansible