Convert all tiled tmx maps to new engines behavior for enemies

Have full path within mod, using these 2 scripts:
--8<--
find . -type f |grep tmx > maps.txt
--8<--
#!/usr/bin/env python

import sys
import os
import random

from lxml import etree

def replaceEnemyType(xmlroot, filename):
	for obj in xmlroot.iterchildren(tag="objectgroup"):
		if obj.get('name') == 'enemy':
			for enemy in obj:
				t = enemy.get('type')
				if t == None:
					print "No enemy type set in ", filename
					raise
				enemy.set('type', "enemies/"+t+".txt")
				t = enemy.get('type')
	return xmlroot

def getXMLRoot(filename):
	f = open(filename)
	lines = f.read()
	f.close()
	root = etree.fromstring(lines)
	return root

def writeXML(filename, root):
	f=open(filename, 'w')
	f.write(etree.tostring(root, pretty_print=True, xml_declaration=True, encoding='utf-8'))
	f.close()

def processMap(filename):
	root = getXMLRoot(filename)
	root = replaceEnemyType(root, filename)
	writeXML(filename, root)

lines = open("maps.txt").readlines()
for map in lines:
	processMap(map.strip())
Merge pull request #57 from stefanbeller/master

Convert all tiled tmx maps to new engines behavior for enemies