control recursive tolerence from Python