Remove papp, use functools.partial instead