Add support for timeout in couchbase checks for recent versions of python

Could help with #826