Here is the python implementation of paper Counterfactual Fairness by Matt Kusner et al. (https://arxiv.org/pdf/1703.06856.pdf)