python api questions