Python flexible main()

http://www.artima.com/weblogs/viewpost.jsp?thread=4829
By: Guido van Rossum