Reimplement Some Unix Commands in Python