bottle's debug flag seems very inconsistent across versions