Make python functions subscribeable