Make python functions subscribable