added waitConnected attribute to mininet class