Convert git-unlock to python & sh