Update tocpp.py

added Import, corrected And, Or