My own util for tar files and such. Been using it for a while with downloads and such. One file at a time though, haven't expanded since I haven't had a reason too and all.
If you can make it better and expand then do so. I find this much easier than using untar because of the ridiculous flags for file types and all. Hashbangs may very, on Arch ATM.
-----------EDIT------------------------
The code posted before wasn't the right one. This is the code currently in use under /usr/bin.
What you seen before was just messing around and thoughts on error checking/etc...
Python 2.x
#!/usr/bin/python2
import tarfile
import os, sys
def unCompress(f):
os.mkdir(f.split('.')[0])
t = tarfile.open(f, 'r')
t.extractall(f.split('.')[0])
print sys.argv
if len(sys.argv) >= 2:
unCompress(sys.argv[1])
else:
print "Specify a file"