How to get the character that is in an index of the string in python?