I don't think we need to use PyQt at all here, plain python should suffice to parse this file.