Guido recommended main.

As Guido van Rossum suggested
(http://www.artima.com/weblogs/viewpost.jsp?thread=4829),
main() was re-implemented to return an integer rather than calling
sys.exit() directly.
Merge pull request #13 from daniel-star/guido-recommended-main

Guido recommended main.