made example programs python3 ready