This patch adds an example script written in python to help people get started with writing their own implementation. The docs are also updated.