Halfway there.

Removed all the bugs. Added some un-reported exceptions. Python works
quite fine now!