python API pulls working correctly