Set package.py commands functions as "callbacks" parameter of ResolvedContext __init__ function.