parameters: (name)
return_statement: return '_'.join(names)
docstring: Returns the name as a valid identifier
docstring_summary: Returns the name as a valid identifier
docstring_tokens: Returns the name as a valid identifier
function: def makeid(name):
      'Returns the name as a valid identifier'
      if type(name) != str:
          print type(name), name
      newname = []
      for char in name:
          if char not in _valid_chars:
              char = '_'
          newname.append(char)
      newname = ''.join(newname)
      # avoid duplications of '_' chars
      names = [x for x in newname.split('_') if x]
      return '_'.join(names)
function_tokens: def makeid ( name ) : if type ( name ) != str : print type ( name ) , name newname = [ ] for char in name : if char not in _valid_chars : char = '_' newname . append ( char ) newname = '' . join ( newname ) # avoid duplications of '_' chars names = [ x for x in newname . split ( '_' ) if x ] return '_' . join ( names )