Creating Python script for connectivity testing.