def _string_to_list(string_list):
    """ Take a string with comma separated elements a return a list of
    those elements.

    :param string_list: String with comma separated elements.
    :type string_list: str
    :return: List with elements.
    :rtype: list
    """
    string_list_no_spaces = string_list.replace(' ', '')
    element_list = list(string_list_no_spaces.split(','))
    return element_list