The API has changed, you can check the new documentation here: pymc.CustomDist — PyMC dev documentation