fixed print syntax for python3
adding triples script