Jefferies interview question

how to use python to contract a return attribution data frame. simpson's paradox. difference between future and forward contract. Some brain teasers