python: made ssl check configurable and removed traceback in production.