restore environment after each modules.py unit test since they involve purging *all* loaded modules