Cannot Use String Offset As An Array In Python Syntax For If Else Statements