Fix #411 and #412

Fix #411 - Call the WriterHandler when counts smaller than 1000, avoid sending email
Fix #412 - I think I caught all the times the old "'Development' in os.environ['SERVER_SOFTWARE']" is being used