def index_or_none(value):
    """
      Maps OBJ file index to python 0-index scheme
    """
    try:
        v = int(value)
        if v > 0:
            return v - 1
        else:
            return v
    except ValueError:
        return None
