python: cleaning pkg directory before installing