Cleanup: Quick skip in case tag is 'langSet'
Cleanup: Just use the value of the comparison
Cleanup: Use tuples instead of dictionaries
Cleanups: Get rid of unnecessary functions

get_metadata(), read_xml() and main() functions get combined into a new
main() function.