merge of #2998 Python connection test failures