For #20562, add python api support for new api functions 'follow' and 'unfollow'.