does this suit your needs? http://code.google.com/p/pyhumod/