http service py callback function