update rest class
remove rest api
add rest api
move public method
rewrite python config
refactor public class