second edit to py