Update python cookbook