adding logic to install Python