Fix example in docstring for virt.get_profiles

Also refactored some variable names.