How to get the number of syllables in a word?
You can try another Python library called Pyphen. It's easy to use and supports a lot of languages.

import pyphen
dic = pyphen.Pyphen(lang='en')
print dic.inserted('Rohit')
&gt;&gt;'Ro-hit'