An alternative implementation of Python freeze.