debug and stats should only signal the python program and avoid the java program