import binhex import sys infile = "co-medicalobjects-5/logo-binhex.pct" binhex.hexbin(infile, "co-medicalobjects-5/logo-hexbin.pct")