add python cookbook examples