Add ability to search and remove environment groups

Sorry for the extra pep8 fixes in here.  I started using flake8 to audit my code and updating as I go along.  This also depends on the earlier PR to copy environment groups.