Python is not enabled by Default in CentOS 7 along with Plesk 17 version .To enable Python do any of these
Steps 1 : Install mod_python using yum install mod_python
Step 2: Once that is installed, Go to Hosting Settings for the site and scroll down and then change these settings
![This image has an empty alt attribute; its file name is image-1-1024x442.png](http://www.azuredevopsguide.com/wp-content/uploads/2019/05/image-1-1024x442.png)