Added a dumps() method to class Note.

Signed-off-by: Stefan Tatschner <stefan@sevenbyte.org>