Wine is a tool (not an emulator) for running Windows based programs on other non-Windows based operating systems such as Linux. These are the steps to get it installed on Kali Linux with Python 2.7
First add the i386 architecture to your system in case you don’t already have it, the command won’t do anything if you have it already. Skip this first step if that is the case.
Next run apt-get update:
apt-get update
To update your repositories for Linux. This will make sure you get the latest version of Wine.
Install the Wine package using apt-get install wine32. This could take a few minutes depending on your internet connection and you will be asked to confirm the install near the start.
apt-get install wine32
Once installed you should see wine in the /root/.wine folder with a Windows C:/ structure inside it:
The next stage is to download and install Python into your Wine install. Visit the Python download page at:
https://www.python.org/downloads/release/python-2714/
and download the Windows x86 MSI Installer. The file is only 19MB in size so should come down very quickly.
Now navigate to your downloads folder in the terminal and install it using wine msiexec /i python-2.7.14.msi
wine msiexec /i python-2.7.14.msi
The install wizard should appear and unless you have some specific requirements for the install you can just hit next, next, next, finish through the windows.
Once the install is complete you can confirm it’s there by navigating to the new Python folder within the Wine directory: