Python Get Char Value Range