python independent (>2.7) easy changing of error  message