adding python sample code