Code snippets related to the SHARQ talk at PyCon India 2014