map(int, values)) except ValueError: pass vars_values.append((var_name, values)) vars_dict = dict(vars_values) return vars_dict #f is a string with the contents of the file class FermiSurface(object): def __init__(self): self