working on generating the patent dict as it was giving keyerror.