Is it possible to use a python script in the website, if yes. How?
Yes and no,
Python can be used as a backend language on your own web server, and you can design sites in BSS. Though Python is not natively supported in browsers or BSS.
Also bare in mind you will need to use the Custom Code element to write PyScript. Hope this helps