code: def toVName(name, stripNum=0, upper=False):
      
      if upper:
          name = name.upper()
      if stripNum != 0:
          name = name[:-stripNum]
      return name.replace('_', '-')
docs: Turn a Python name into an iCalendar style name,
      optionally uppercase and with characters stripped off.