Why not take a look at another secure browser that meets commonly used standards and is running on any operating system?
If you are interested in learning programming with Python, you can download a script I wrote for a lecture. It is a quick introduction in the basics of Python and goes immediately to advanced topics like graphical interfaces, threading/multiprocessing and scientific tools.
I'd like to point out that this script is from 2012 and assumes a Python version of 2.x, which starting from 2018 will no longer be maintained by the developers.
Fortunately, the differences between Python 2 and Python 3 are not very big. See the references for further details.
All example scripts from the lecture notes can be viewed and downloaded from here.