<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def byte2int(s, index=0):
 """Get the ASCII int value of a character in a string. :param s: a string :param index: the position of desired character :return: ASCII int value """

    if six.PY2:
        return ord(s[index])
    return s[index]