git: add post-checkout script for python and dir clean-up