Made the psuedo-python more like python

Explanation of changes: 

* elif if isn't valid python syntax.
* Trying an unexpected method raises AttributeError, and python has except instead of catch, so I wrote those in.  

I like reading your blog, and love the opportunity to help make it a bit better.