Skeleton taken from sample-python-couchdb