pep8 on weighted quick union with path compression