python/tests: add a second_connection() helper function