Python startswith and then look a word in a conditional block
Unless there is an indentation issue, 

        dataBlock = ''
        dataBlock = dataBlock +  line


can be written:

        dataBlock = line