Update base.py

pass callbacks into publish_task
Merge pull request #1523 from taylornelson/3.0

Update base.py