Often, I see the following code in python programs
if __name__ == '__main__':
main()
I'm following the Python class on Google Code, and it says that it's standard boilerplate code.
Do I really need to write such code in all my scripts?
What functionality would this add to my programs?