changed formatting of char indeces to match PEP8