made example python3 ready