you should learn the basics first before trying to do things like this. You can start with Python, as its very easy to learn and the syntax is very easy to read. Start by going to
Python doc site. Take the tutorial, learn the reference libraries...etc...get a good Python book also and learn by practicing.
by the end of it, you should be able to convert that vbscript to Python.