Urgh, fix numerous syntax errors.

You should really at least run your code before submitting it for a code
quality testing suite.
Also, new classes inherit from "object", not "Object".