Add python install hooks