python sample code