Need to add contacts automatically from person name of lead when lead is converted to Customer

Continuing the discussion from Fetch value of parent doctype to custom doctype in Table format:

As suggested by @max_morais_dmm, Python Hook event should be added to the Customer.

Can someone provide more details on which file should it be added?
I assume it should be in customer.py. If yes, should it be added to class Customer()?