Tidied up support for Python versions.
Improved schema generation (fixes #19).

* Schema is now generated from class, not its instance.