add action endpoint; fix python doc