started reimplementing api integration with python