How do I compress (gzip and/or tar) a directory in python? I found examples of compressing a file using gzip or tar but not a directory. thanks