Alternative tool for rm command in linux using python