def getItalianAccentedVocal(vocal, acc_type="g"):
    """
    It returns given vocal with grave or acute accent
    """
    vocals = {'a': {'g': u'\xe0', 'a': u'\xe1'},
              'e': {'g': u'\xe8', 'a': u'\xe9'},
              'i': {'g': u'\xec', 'a': u'\xed'},
              'o': {'g': u'\xf2', 'a': u'\xf3'},
              'u': {'g': u'\xf9', 'a': u'\xfa'}}
    return vocals[vocal][acc_type]
def getItalianAccentedVocal ( vocal , acc_type = "g" ) : vocals = { 'a' : { 'g' : u'\xe0' , 'a' : u'\xe1' } , 'e' : { 'g' : u'\xe8' , 'a' : u'\xe9' } , 'i' : { 'g' : u'\xec' , 'a' : u'\xed' } , 'o' : { 'g' : u'\xf2' , 'a' : u'\xf3' } , 'u' : { 'g' : u'\xf9' , 'a' : u'\xfa' } } return vocals [ vocal ] [ acc_type ]
It returns given vocal with grave or acute accent