def location_parser(selected_variables, column):
    """
    Parse the location variable by creating a list of tuples.

    Remove the hyphen between the start/stop positions. Convert all elements to
    integers and create a list of tuples.

    Parameters:
        selected_variables (dataframe): The dataframe containing the location of
        the variables contained in the cps_selected_variables file

        column (character): The name of the column containing the start/stop positions

    Returns:
        selected_fields: A list of tuples containing the start/stop positions
    """
    fields = []
    for field in selected_variables[column]:
        field = field.split('-')
        field = [int(i) for i in field]
        fields.append(field)
    return fields