API Connector for python