Repair ChEMBL script and its dependencies