Added debug( str ) to the Python API.
Add debug test to dummypython