parameters: (str)
return_statement: return rv
docstring: Turn any string into an identifier:
      - replace space by _
      - replace other illegal chars by _xx_ (hex code)
      - append _ if the result is a python keyword
docstring_summary: Turn any string into an identifier:
      - replace space by _
      - replace other illegal chars by _xx_ (hex code)
      - append _ if the result is a python keyword
docstring_tokens: Turn any string into an identifier : - replace space by _ - replace other illegal chars by _xx_ ( hex code ) - append _ if the result is a python keyword
function: def identify(str):
      """Turn any string into an identifier:
      - replace space by _
      - replace other illegal chars by _xx_ (hex code)
      - append _ if the result is a python keyword
      """
      if not str:
          return "empty_ae_name_"
      rv = ''
      ok = string.ascii_letters + '_'
      ok2 = ok + string.digits
      for c in str:
          if c in ok:
              rv = rv + c
          elif c == ' ':
              rv = rv + '_'
          else:
              rv = rv + '_%02.2x_'%ord(c)
          ok = ok2
      if keyword.iskeyword(rv):
          rv = rv + '_'
      return rv
function_tokens: def identify ( str ) : if not str : return "empty_ae_name_" rv = '' ok = string . ascii_letters + '_' ok2 = ok + string . digits for c in str : if c in ok : rv = rv + c elif c == ' ' : rv = rv + '_' else : rv = rv + '_%02.2x_' % ord ( c ) ok = ok2 if keyword . iskeyword ( rv ) : rv = rv + '_' return rv