Splunk Web is the GUI whereas Splunk Enterprise is the non-UI part of Splunk. They used to be separate entities, but were merged some time ago.
Most Python scripts only interact with Splunk Enterprise. I can't think of an example of one that interacts with Splunk Web.
It's a good idea to upgrade all of your scripts to use Python 3 since support for Python 2 will go away eventually.