Fixed python script

The problem was that there was a line with some xml in it. I just ignored it.