Largest Connected Component Python