Python example code