def scrub_list(alist):
    """
    Take a comma-separate list, split on the commas, and scrub out any leading
    or trailing whitespace for each element.
    """
    return [p.strip() for p in alist.split(',')]