ctp.py: positional info is added in parsing funcs

The parsing funcs (_cmd_*) are now respinsible for adding
positional information such as command name, and line number.
This is to make it possible to display warnings or other stuff
that can not be send back with exceptions.
test_ctp.py: tests now work with new err messages