A collection of functions and JSON encoder for App Engine and Django models