To convert an int to a string just use str(i), where i is your int. You can also do i.__str__(), which should alert you to what is really happening here.