small python improvements.
small python improvements.

- Check for an exception when in a timer context and log it if uncaught.
- Make sure tlsverify is settable regardless of client certs being specified.

jorisvink/kore,jorisvink/kore