Tile based rpg pyglet - reading positions from a text file
===

I'm trying to make a top down 2d RPG with pyglet. I used configparser to read the a map from a text file and draw it on the screen.
The text file looks like this:

[map]
level = ++T+++++TT\n++++TT++++\n+++TT+++++\nTT++++TT++\n+++++T++TT\n

(in the text file it looks like a square)

My code to read this:

    def load_file(self, filename="map.ini"):
        """Load the level from specified file."""
        parser = ConfigParser.ConfigParser()
        parser.read(filename)
        self.map = parser.get("map","level").split("\n")
        number = 0
        for x in self.map:
            self.map1 = list(self.map[number])
            number +=1
            for position, item in enumerate(self.map1):
                if item == "+":
                    self.img = grass
                elif item == "T":
                    self.img = tree
                self.x = position * 32
                a = pyglet.sprite.Sprite(self.img,self.x,number * 32,batch = tiles_2)
                tiles_1.append(a)

I have looked at examples made using Pygame and they seem far more reliable (half the time the tiles are in the wrong place in mine) but there aren't any tutorials I could find showing how to to this with pyglet. If anyone could show some corrections or point me in the right direction it would be greatly appreciated :)