Get rid of PyPAM; re-implemented using ctypes.