use python thread id as default connection id