[python] Convert alphabet letters to number in Python