fix analytics with python api