script to parse chess opening books