def findTileValue(materialname, tilevalfile):
    """Takes the tile name from Prison Architect and returns the tile value
       for The Escapists."""
    with open(tilevalfile) as matlist:
        for line in matlist:
            if line.startswith(materialname):
                return line.split('= ')[1].strip()